temp. favicon 204 silencer added to core.urls; functional_tests.test_my_lists now tests authenticity of login compared to queried list

This commit is contained in:
Disco DeDisco
2026-02-01 20:18:42 -05:00
parent cf33f0ccd4
commit 2db1c0e3fc
2 changed files with 17 additions and 0 deletions

View File

@@ -1,4 +1,5 @@
# from django.contrib import admin # from django.contrib import admin
from django.http import HttpResponse
from django.urls import include, path from django.urls import include, path
from apps.dashboard import views as dash_views from apps.dashboard import views as dash_views
@@ -8,3 +9,10 @@ urlpatterns = [
path('apps/dashboard/', include('apps.dashboard.urls')), path('apps/dashboard/', include('apps.dashboard.urls')),
path('apps/lyric/', include('apps.lyric.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)),
]

View File

@@ -23,3 +23,12 @@ class MyListsTest(FunctionalTest):
path="/", 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)