kopia lustrzana https://github.com/wagtail/wagtail
Remove bogus pagination test from sites index
The sites index is not paginated, and never has been. All this test is doing is confirming that we can pass some random unrecognised URL parameter to the page and it will have no effect. :-)pull/10533/head
rodzic
8e106f40c6
commit
1fe96e208d
|
@ -20,12 +20,6 @@ class TestSiteIndexView(WagtailTestUtils, TestCase):
|
|||
self.assertEqual(response.status_code, 200)
|
||||
self.assertTemplateUsed(response, "wagtailadmin/generic/index.html")
|
||||
|
||||
def test_pagination(self):
|
||||
pages = ["0", "1", "-1", "9999", "Not a page"]
|
||||
for page in pages:
|
||||
response = self.get({"p": page})
|
||||
self.assertEqual(response.status_code, 200)
|
||||
|
||||
|
||||
class TestSiteCreateView(WagtailTestUtils, TestCase):
|
||||
def setUp(self):
|
||||
|
|
Ładowanie…
Reference in New Issue