summaryrefslogtreecommitdiffstats
path: root/tests/test_pages.py
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2017-10-12 09:18:13 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2017-10-27 08:29:35 (GMT)
commit30ed33eaf457285cf04ef8a66e22535b0d40edd0 (patch)
tree89979678cd726fda4a5c902c33a6546884e1a89d /tests/test_pages.py
parent0b8b1ba4603e63ecd2c8c9d0f7dcad91be07ab3b (diff)
downloadcombo-30ed33eaf457285cf04ef8a66e22535b0d40edd0.zip
combo-30ed33eaf457285cf04ef8a66e22535b0d40edd0.tar.gz
combo-30ed33eaf457285cf04ef8a66e22535b0d40edd0.tar.bz2
misc: don't export cells set on private placeholders (#16476)
Diffstat (limited to 'tests/test_pages.py')
-rw-r--r--tests/test_pages.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_pages.py b/tests/test_pages.py
index 0e584ff..94398e2 100644
--- a/tests/test_pages.py
+++ b/tests/test_pages.py
@@ -126,13 +126,13 @@ def test_import_export_pages():
page = Page(title=u'foo', slug='foo', order=0)
page.save()
- cell = TextCell(page=page, text='foo', order=0)
+ cell = TextCell(page=page, text='foo', order=0, placeholder='content')
cell.save()
page2 = Page(title=u'bar', slug='bar', order=1, parent=page)
page2.save()
- cell = TextCell(page=page2, text='bar', order=0)
+ cell = TextCell(page=page2, text='bar', order=0, placeholder='content')
cell.save()
site_export = [x.get_serialized_page() for x in Page.objects.all()]
@@ -155,10 +155,10 @@ def test_import_export_pages_with_links():
page2 = Page(title=u'bar', slug='bar', order=1)
page2.save()
- cell = LinkCell(page=page, title='bar', link_page=page2, order=1)
+ cell = LinkCell(page=page, title='bar', placeholder='content', link_page=page2, order=1)
cell.save()
- cell2 = LinkCell(page=page2, title='foo', link_page=page, order=1)
+ cell2 = LinkCell(page=page2, title='foo', placeholder='content', link_page=page, order=1)
cell2.save()
site_export = [x.get_serialized_page() for x in Page.objects.all()]
@@ -211,13 +211,13 @@ def test_import_export_management_commands():
page = Page(title=u'foo', slug='foo', order=0)
page.save()
- cell = TextCell(page=page, text='foo', order=0)
+ cell = TextCell(page=page, text='foo', order=0, placeholder='content')
cell.save()
page2 = Page(title=u'bar', slug='bar', order=1, parent=page)
page2.save()
- cell = TextCell(page=page2, text='bar', order=0)
+ cell = TextCell(page=page2, text='bar', order=0, placeholder='content')
cell.save()
export_filename = os.path.join(settings.MEDIA_ROOT, 'site-export.json')