diff --git a/src/core/tests/test_middlewares.py b/src/core/tests/test_middlewares.py index 1b45faeca..201b969bc 100644 --- a/src/core/tests/test_middlewares.py +++ b/src/core/tests/test_middlewares.py @@ -6,7 +6,10 @@ @pytest.mark.django_db def test_locale_fallback_middleware(client, settings): response = client.get('/en/', follow=True) - assert response.redirect_chain == [('/en-us/', 302)] + assert response.redirect_chain == [ + ('/en-us/', 302), + ('/en-us/dashboard/', 302), + ('/en-us/accounts/login/?next=/en-us/dashboard/', 302)] @override_settings(USE_I18N=False) diff --git a/src/core/tests/test_views.py b/src/core/tests/test_views.py index 3e98872ed..9eaa2d851 100644 --- a/src/core/tests/test_views.py +++ b/src/core/tests/test_views.py @@ -11,7 +11,7 @@ @pytest.mark.django_db def test_index_page(client): - response = client.get('/en-us/') + response = client.get('/en-us/', follow=True) assert response.status_code == 200 assert 'PyCon' in response.content.decode('utf-8')