mirror of
https://github.com/jazzband/django-constance.git
synced 2026-03-16 22:40:24 +00:00
Fix Django 5.1+ admin tests
This commit is contained in:
parent
6931c45c7b
commit
19889239ad
1 changed files with 4 additions and 4 deletions
|
|
@ -74,8 +74,8 @@ class TestAdmin(TestCase):
|
|||
request = self.rf.get("/admin/constance/config/")
|
||||
request.user = self.superuser
|
||||
response = self.options.changelist_view(request, {})
|
||||
self.assertContains(response, "<h2>Numbers</h2>")
|
||||
self.assertContains(response, "<h2>Text</h2>")
|
||||
self.assertContains(response, "Numbers</h2>")
|
||||
self.assertContains(response, "Text</h2>")
|
||||
|
||||
@mock.patch(
|
||||
"constance.settings.CONFIG_FIELDSETS",
|
||||
|
|
@ -89,8 +89,8 @@ class TestAdmin(TestCase):
|
|||
request = self.rf.get("/admin/constance/config/")
|
||||
request.user = self.superuser
|
||||
response = self.options.changelist_view(request, {})
|
||||
self.assertContains(response, "<h2>Numbers</h2>")
|
||||
self.assertContains(response, "<h2>Text</h2>")
|
||||
self.assertContains(response, "Numbers</h2>")
|
||||
self.assertContains(response, "Text</h2>")
|
||||
|
||||
@mock.patch(
|
||||
"constance.settings.CONFIG_FIELDSETS",
|
||||
|
|
|
|||
Loading…
Reference in a new issue