summaryrefslogtreecommitdiffstats
path: root/tests/test_pages.py
diff options
context:
space:
mode:
authorLauréline Guérin <zebuline@entrouvert.com>2019-10-23 15:37:10 (GMT)
committerLauréline Guérin <zebuline@entrouvert.com>2019-11-03 16:28:17 (GMT)
commit45309fd524fc6fb7459f8d2d0831b0f51f9c3d2f (patch)
tree32dac9049b7bdae98a9b8eeb0e065898313dcb08 /tests/test_pages.py
parentfbfeb64a8322f99413f87c73982002abd872f4e3 (diff)
downloadcombo-45309fd524fc6fb7459f8d2d0831b0f51f9c3d2f.zip
combo-45309fd524fc6fb7459f8d2d0831b0f51f9c3d2f.tar.gz
combo-45309fd524fc6fb7459f8d2d0831b0f51f9c3d2f.tar.bz2
pages: add a param check_visibility to next/previous methods (#12437)
Diffstat (limited to 'tests/test_pages.py')
-rw-r--r--tests/test_pages.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/test_pages.py b/tests/test_pages.py
index b27db89..aa701bd 100644
--- a/tests/test_pages.py
+++ b/tests/test_pages.py
@@ -228,6 +228,11 @@ def test_next_previous():
page3.save()
assert page.get_next_page(None) is None
+ assert page.get_next_page(check_visibility=False).id == page2.pk
+ assert page2.get_next_page(check_visibility=False).id == page3.pk
+ assert page3.get_previous_page(check_visibility=False).id == page2.pk
+
+
def test_import_export_management_commands():
page = Page(title=u'foo', slug='foo', order=0)
page.save()