From 0a8e4353908e92dd9b93429a732e28133c69e564 Mon Sep 17 00:00:00 2001 From: Nina Menezes Date: Mon, 12 Aug 2024 15:45:00 +0100 Subject: [PATCH] We aren't actually redirecting. --- tests/views/test_support_urls.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/views/test_support_urls.py b/tests/views/test_support_urls.py index a2fc1144..a3df836c 100644 --- a/tests/views/test_support_urls.py +++ b/tests/views/test_support_urls.py @@ -10,14 +10,12 @@ def test_support_url_access(client): # Check anonymous user response = client.get(url) assert response.status_code == 404 - assert response.url == "/" # redirect to home # Check normal non-staff user can't access user = factories.UserFactory() client.force_login(user) response = client.get(url) assert response.status_code == 404 - assert response.url == "/" # Check staff user can access user = factories.UserFactory(is_staff=True)