From 2db1c0e3fc804e9192f6a0a262064e5c83793276 Mon Sep 17 00:00:00 2001 From: Disco DeDisco Date: Sun, 1 Feb 2026 20:18:42 -0500 Subject: [PATCH] temp. favicon 204 silencer added to core.urls; functional_tests.test_my_lists now tests authenticity of login compared to queried list --- src/core/urls.py | 8 ++++++++ src/functional_tests/test_my_lists.py | 9 +++++++++ 2 files changed, 17 insertions(+) diff --git a/src/core/urls.py b/src/core/urls.py index 612a2d8..5589f24 100644 --- a/src/core/urls.py +++ b/src/core/urls.py @@ -1,4 +1,5 @@ # from django.contrib import admin +from django.http import HttpResponse from django.urls import include, path from apps.dashboard import views as dash_views @@ -8,3 +9,10 @@ urlpatterns = [ path('apps/dashboard/', include('apps.dashboard.urls')), path('apps/lyric/', include('apps.lyric.urls')), ] + +# Please remove the following urlpattern +## then install actual favicon.ico in staticroot +### and call {% static 'favicon.ico' %} in base.html +urlpatterns += [ + path("favicon.ico", lambda request: HttpResponse(status=204)), +] diff --git a/src/functional_tests/test_my_lists.py b/src/functional_tests/test_my_lists.py index c0b23b3..b65f644 100644 --- a/src/functional_tests/test_my_lists.py +++ b/src/functional_tests/test_my_lists.py @@ -23,3 +23,12 @@ class MyListsTest(FunctionalTest): path="/", ) ) + + def test_logged_in_users_are_saved_as_my_lists(self): + email = "discoman@example.com" + self.browser.get(self.live_server_url) + self.wait_to_be_logged_out(email) + + self.create_pre_authenticated_session(email) + self.browser.get(self.live_server_url) + self.wait_to_be_logged_in(email)