From 0c392eda221e1d4ada0b2153f631cbd3d3710565 Mon Sep 17 00:00:00 2001 From: Nina Menezes Date: Mon, 12 Aug 2024 13:29:54 +0100 Subject: [PATCH] Update tests as if no access should 404. --- tests/views/test_support_urls.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/views/test_support_urls.py b/tests/views/test_support_urls.py index 03095c8f..a2fc1144 100644 --- a/tests/views/test_support_urls.py +++ b/tests/views/test_support_urls.py @@ -9,14 +9,14 @@ def test_support_url_access(client): url = reverse("users") # Check anonymous user response = client.get(url) - assert response.status_code == 302 + 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 == 302 + assert response.status_code == 404 assert response.url == "/" # Check staff user can access