Skip to content
This repository has been archived by the owner on Apr 18, 2020. It is now read-only.

Commit

Permalink
maybe this
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Jul 18, 2016
1 parent b9be615 commit eece3cd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions bigbuild/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ def setUpClass(cls):
slug='a-working-page',
published=False,
description='Foobar'
),
Page(
slug='a-live-page',
published=True,
pub_date=datetime(2001, 1, 1, 0, 0, 0),
description='Foobar'
)
]
[p.create_directory() for p in pages]
Expand Down Expand Up @@ -125,6 +131,7 @@ def test_pagelist(self):
with override_settings(PAGE_PUBLICATION_STATUS='working'):
page_list = PageList()
self.assertTrue(len(page_list) > 0)
print [p.is_live() for p in PageList()]
with override_settings(PAGE_PUBLICATION_STATUS='live'):
page_list = PageList()
print list(page_list), len(page_list), len(list(page_list))
Expand Down

0 comments on commit eece3cd

Please sign in to comment.