Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Christopher Cave-Ayland <[email protected]>
  • Loading branch information
dalonsoa and cc-a authored Sep 19, 2024
1 parent 18e0f93 commit a2382e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ def test_login_redirect(self, client):
response = client.get(self.endpoint)
assert response.status_code == HTTPStatus.FOUND

# AssertRedirects try to match the exact URL, but the URL may contain a query
# string. So, we just check the start of the URL.
assert response.url.startswith(reverse("main:login"))
assertRedirects(response, reverse("main:login") + f"?next={self.endpoint}")


class ProcessActionsTest(LoginRequiredTest):
Expand Down

0 comments on commit a2382e4

Please sign in to comment.