kopia lustrzana https://github.com/wagtail/wagtail
Update the test for page modeladmin
rodzic
644714ef57
commit
10e237f313
|
@ -119,11 +119,11 @@ class TestInspectView(TestCase, WagtailTestUtils):
|
|||
|
||||
def test_title_present(self):
|
||||
"""
|
||||
The page title should appear twice. Once in the header, and once
|
||||
more in the field listing
|
||||
The page title should appear three times. Once in the header, and two times
|
||||
in the field listing (as the actual title and as the draft title)
|
||||
"""
|
||||
response = self.get(4)
|
||||
self.assertContains(response, 'Christmas', 2)
|
||||
self.assertContains(response, 'Christmas', 3)
|
||||
|
||||
def test_manytomany_output(self):
|
||||
"""
|
||||
|
|
Ładowanie…
Reference in New Issue