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
Patrick Woods 2017-11-21 17:38:09 -05:00 zatwierdzone przez Matt Westcott
rodzic 0a6db9bd05
commit 52e76095d9
1 zmienionych plików z 0 dodań i 4 usunięć

Wyświetl plik

@ -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)