Skip to content

Commit

Permalink
Update test_admin.py for Django 5.1+
Browse files Browse the repository at this point in the history
  • Loading branch information
fsbraun authored Aug 20, 2024
1 parent 055d0e7 commit c81a0ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -554,9 +554,9 @@ def test_aliases_admin_entry_is_hidden(self):
response = self.client.get(index_url)

unexpected_content = (
'<th scope="row"><a href="/en/admin/djangocms_alias/aliascontent/">' "Alias contents</a></th>"
'<a href="/en/admin/djangocms_alias/aliascontent/">' "Alias contents</a>"
)
expected_content = '<th scope="row"><a href="/en/admin/djangocms_alias/alias/">Aliases</a></th>'
expected_content = '<a href="/en/admin/djangocms_alias/alias/">Aliases</a>'

self.assertEqual(response.status_code, 200)
self.assertContains(response, expected_content)
Expand Down

0 comments on commit c81a0ec

Please sign in to comment.