Add YouTube

This commit is contained in:
Joakim Hellsén 2026-03-16 21:27:11 +01:00
commit 5bdee66207
Signed by: Joakim Hellsén
SSH key fingerprint: SHA256:/9h/CsExpFp+PRhsfA0xznFx2CGfTT5R/kpuFfUgEQk
12 changed files with 214 additions and 1 deletions

View file

@ -141,6 +141,7 @@ INSTALLED_APPS: list[str] = [
"django.contrib.postgres",
"twitch.apps.TwitchConfig",
"kick.apps.KickConfig",
"youtube.apps.YoutubeConfig",
"core.apps.CoreConfig",
]

View file

@ -39,6 +39,9 @@ def test_top_level_named_routes_available() -> None:
msg: str = f"Expected 'twitch:dashboard' to reverse to '/twitch/', got {reverse('twitch:dashboard')}"
assert reverse("twitch:dashboard") == "/twitch/", msg
youtube_msg: str = f"Expected 'youtube:index' to reverse to '/youtube/', got {reverse('youtube:index')}"
assert reverse("youtube:index") == "/youtube/", youtube_msg
def test_debug_tools_not_present_while_testing() -> None:
"""`silk` and Django Debug Toolbar URL patterns are not present while running tests."""

View file

@ -19,6 +19,8 @@ urlpatterns: list[URLPattern | URLResolver] = [
path(route="twitch/", view=include("twitch.urls", namespace="twitch")),
# Kick app
path(route="kick/", view=include("kick.urls", namespace="kick")),
# YouTube app
path(route="youtube/", view=include("youtube.urls", namespace="youtube")),
]
# Serve media in development