kopia lustrzana https://github.com/wagtail/wagtail
We only need to test the writeability of first_published_at.
We don't need to update go_live_at and expire_at to test it.pull/4157/merge
rodzic
0a6db9bd05
commit
52e76095d9
|
@ -1397,8 +1397,6 @@ class TestPageEdit(TestCase, WagtailTestUtils):
|
|||
|
||||
initial_delta = self.child_page.first_published_at - timezone.now()
|
||||
|
||||
go_live_at = timezone.now() + datetime.timedelta(days=1)
|
||||
expire_at = timezone.now() + datetime.timedelta(days=2)
|
||||
first_published_at = timezone.now() - datetime.timedelta(days=2)
|
||||
|
||||
post_data = {
|
||||
|
@ -1406,8 +1404,6 @@ class TestPageEdit(TestCase, WagtailTestUtils):
|
|||
'body': "Some content",
|
||||
'slug': 'hello-again-world',
|
||||
'action-publish': "Publish",
|
||||
'go_live_at': submittable_timestamp(go_live_at),
|
||||
'expire_at': submittable_timestamp(expire_at),
|
||||
'first_published_at': submittable_timestamp(first_published_at),
|
||||
}
|
||||
self.client.post(reverse('wagtailadmin_pages:edit', args=(self.child_page.id, )), post_data)
|
||||
|
|
Ładowanie…
Reference in New Issue