Skip to content

Commit 84bce81

Browse files
authored
Fixes failing test (#315)
1 parent befd07b commit 84bce81

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_access_mixins.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,7 @@ def test_outdated_login(self):
769769
user = UserFactory(last_login=last_login)
770770
self.client.login(username=user.username, password="asdf1234")
771771
resp = self.client.get(self.outdated_view_url)
772-
assert resp.status_code == 302
772+
assert resp.status_code in [302, 405] # 302 is for Django < 5, while 405 is for Django >= 5
773773

774774
def test_not_logged_in(self):
775775
"""Anonymous requests should be handled appropriately"""

0 commit comments

Comments
 (0)