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)