Forráskód Böngészése

Fixed #12703 -- Corrected a test suite failure in the admin_views tests.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12308 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Russell Keith-Magee 15 éve
szülő
commit
65b6080da2
1 módosított fájl, 3 hozzáadás és 2 törlés
  1. 3 2
      tests/regressiontests/admin_views/tests.py

+ 3 - 2
tests/regressiontests/admin_views/tests.py

@@ -931,8 +931,9 @@ class AdminViewListEditable(TestCase):
         # main form submit button = 1
         # search field and search submit button = 2
         # CSRF field = 1
-        # 6 + 2 + 4 + 1 + 2 + 1 = 16 inputs
-        self.failUnlessEqual(response.content.count("<input"), 16)
+        # field to track 'select all' across paginated views = 1
+        # 6 + 2 + 4 + 1 + 2 + 1 + 1 = 17 inputs
+        self.failUnlessEqual(response.content.count("<input"), 17)
         # 1 select per object = 3 selects
         self.failUnlessEqual(response.content.count("<select"), 4)