kopia lustrzana https://github.com/wagtail/wagtail
Add missing comment management form data to tests
rodzic
4980de37f6
commit
2db89a08d4
|
@ -978,6 +978,10 @@ class TestInlinePanelWithTags(TestCase, WagtailTestUtils):
|
|||
'addresses-0-address': "52 Festive Road, London",
|
||||
'addresses-0-tags': "shopkeeper, bowler-hat",
|
||||
'action-publish': "Publish",
|
||||
'comments-TOTAL_FORMS': 0,
|
||||
'comments-INITIAL_FORMS': 0,
|
||||
'comments-MIN_NUM_FORMS': 0,
|
||||
'comments-MAX_NUM_FORMS': 1000,
|
||||
}
|
||||
response = self.client.post(
|
||||
reverse('wagtailadmin_pages:add', args=('tests', 'personpage', self.root_page.id)), post_data
|
||||
|
@ -1017,6 +1021,10 @@ class TestInlinePanelNonFieldErrors(TestCase, WagtailTestUtils):
|
|||
'carousel_items-MAX_NUM_FORMS': 1000,
|
||||
'carousel_items-TOTAL_FORMS': 0,
|
||||
'action-publish': "Publish",
|
||||
'comments-TOTAL_FORMS': 0,
|
||||
'comments-INITIAL_FORMS': 0,
|
||||
'comments-MIN_NUM_FORMS': 0,
|
||||
'comments-MAX_NUM_FORMS': 1000,
|
||||
}
|
||||
response = self.client.post(
|
||||
reverse('wagtailadmin_pages:add', args=('demosite', 'homepage', self.root_page.id)), post_data
|
||||
|
|
|
@ -384,6 +384,10 @@ class TestPageEdit(TestCase, WagtailTestUtils):
|
|||
'slug': 'hello-again-world',
|
||||
'action-publish': "Publish",
|
||||
'first_published_at': submittable_timestamp(first_published_at),
|
||||
'comments-TOTAL_FORMS': 0,
|
||||
'comments-INITIAL_FORMS': 0,
|
||||
'comments-MIN_NUM_FORMS': 0,
|
||||
'comments-MAX_NUM_FORMS': 1000,
|
||||
}
|
||||
self.client.post(reverse('wagtailadmin_pages:edit', args=(self.child_page.id, )), post_data)
|
||||
|
||||
|
|
|
@ -97,6 +97,10 @@ class TestPreview(TestCase, WagtailTestUtils):
|
|||
'head_counts-MIN_NUM_FORMS': 0,
|
||||
'head_counts-MAX_NUM_FORMS': 0,
|
||||
'categories': [self.parties_category.id, self.holidays_category.id],
|
||||
'comments-TOTAL_FORMS': 0,
|
||||
'comments-INITIAL_FORMS': 0,
|
||||
'comments-MIN_NUM_FORMS': 0,
|
||||
'comments-MAX_NUM_FORMS': 1000,
|
||||
}
|
||||
|
||||
def test_preview_on_create_with_m2m_field(self):
|
||||
|
|
Ładowanie…
Reference in New Issue