Skip to content

Commit

Permalink
We aren't actually redirecting.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmenezes0 committed Aug 12, 2024
1 parent 0c392ed commit 0a8e435
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/views/test_support_urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0a8e435

Please sign in to comment.