8000 Refs #23947 -- Fixed admin_views test execution order dependency. · alex-python/django@d8182f2 · GitHub
[go: up one dir, main page]

Skip to content

Commit d8182f2

Browse files
diegoguimaraestimgraham
authored andcommitted
Refs #23947 -- Fixed admin_views test execution order dependency.
1 parent 0d5ca7b commit d8182f2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/admin_views/tests.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1804,8 +1804,8 @@ def test_generic_relations(self):
18041804
18051805
"""
18061806
plot = Plot.objects.get(pk=3)
1807-
FunkyTag.objects.create(content_object=plot, name='hott')
1808-
should_contain = """<li>Funky tag: <a href="/test_admin/admin/admin_views/funkytag/1/">hott"""
1807+
tag = FunkyTag.objects.create(content_object=plot, name='hott')
1808+
should_contain = """<li>Funky tag: <a href="/test_admin/admin/admin_views/funkytag/%s/">hott""" % tag.id
18091809
response = self.client.get('/test_admin/admin/admin_views/plot/%s/delete/' % quote(3))
18101810
self.assertContains(response, should_contain)
18111811

0 commit comments

Comments
 (0)
0