diff options
| author | Diego GuimarĂ£es <diegobr.sistemas@gmail.com> | 2014-12-13 18:00:38 -0200 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-12-15 10:48:42 -0500 |
| commit | d8182f294aa0a8dfb3ea4611a9adb7a748a36bf4 (patch) | |
| tree | faa53ce59173c756d75ae10faa06367804b3df6d /tests | |
| parent | 0d5ca7b560dbb827eea625e53e4a6a67c29d7964 (diff) | |
Refs #23947 -- Fixed admin_views test execution order dependency.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/admin_views/tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/admin_views/tests.py b/tests/admin_views/tests.py index 2e5dcb4f37..c054730c2b 100644 --- a/tests/admin_views/tests.py +++ b/tests/admin_views/tests.py @@ -1804,8 +1804,8 @@ class AdminViewDeletedObjectsTest(TestCase): """ plot = Plot.objects.get(pk=3) - FunkyTag.objects.create(content_object=plot, name='hott') - should_contain = """<li>Funky tag: <a href="/test_admin/admin/admin_views/funkytag/1/">hott""" + tag = FunkyTag.objects.create(content_object=plot, name='hott') + should_contain = """<li>Funky tag: <a href="/test_admin/admin/admin_views/funkytag/%s/">hott""" % tag.id response = self.client.get('/test_admin/admin/admin_views/plot/%s/delete/' % quote(3)) self.assertContains(response, should_contain) |
