mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-19 14:38:02 +00:00
Changes required for Django > 4
This commit is contained in:
@@ -50,11 +50,16 @@ class Tester(TestCase): # pylint: disable=too-many-public-methods
|
||||
Test incorrect digest
|
||||
"""
|
||||
response = self.client.get("/avatar/%s" % "x" * 65, follow=True)
|
||||
self.assertRedirects(
|
||||
response=response,
|
||||
expected_url="/static/img/deadbeef.png",
|
||||
msg_prefix="Why does an invalid hash not redirect to deadbeef?",
|
||||
self.assertEqual(
|
||||
response.redirect_chain[0][0],
|
||||
"/static/img/deadbeef.png",
|
||||
"Doesn't redirect to static?",
|
||||
)
|
||||
# self.assertRedirects(
|
||||
# response=response,
|
||||
# expected_url="/static/img/deadbeef.png",
|
||||
# msg_prefix="Why does an invalid hash not redirect to deadbeef?",
|
||||
# )
|
||||
|
||||
def test_stats(self):
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user