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:
@@ -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)),
|
||||||
|
]
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user