From 42037419b07c665d5e80213d51160560370056b9 Mon Sep 17 00:00:00 2001 From: Karl Hobley Date: Mon, 30 Jun 2014 10:29:17 +0100 Subject: [PATCH] Removed duplicate test --- .../tests/test_management_commands.py | 21 ------------------- 1 file changed, 21 deletions(-) diff --git a/wagtail/wagtailcore/tests/test_management_commands.py b/wagtail/wagtailcore/tests/test_management_commands.py index 93315c33e9..ae19167c26 100644 --- a/wagtail/wagtailcore/tests/test_management_commands.py +++ b/wagtail/wagtailcore/tests/test_management_commands.py @@ -117,27 +117,6 @@ class TestPublishScheduledPagesCommand(TestCase): self.assertTrue(p.live) self.assertFalse(PageRevision.objects.filter(page=p).exclude(approved_go_live_at__isnull=True).exists()) - def test_go_live_page_will_be_published(self): - page = SimplePage( - title="Hello world!", - slug="hello-world", - live=False, - go_live_at=timezone.now() - timedelta(days=1), - ) - self.root_page.add_child(instance=page) - - page.save_revision(approved_go_live_at=timezone.now() - timedelta(days=1)) - - p = Page.objects.get(slug='hello-world') - self.assertFalse(p.live) - self.assertTrue(PageRevision.objects.filter(page=p).exclude(approved_go_live_at__isnull=True).exists()) - - management.call_command('publish_scheduled_pages') - - p = Page.objects.get(slug='hello-world') - self.assertTrue(p.live) - self.assertFalse(PageRevision.objects.filter(page=p).exclude(approved_go_live_at__isnull=True).exists()) - def test_future_go_live_page_will_not_be_published(self): page = SimplePage( title="Hello world!",