8000 Bugfix test: use draft version of parent page, see: · django-cms/django-cms@c9059ee · GitHub
[go: up one dir, main page]

Skip to content

Commit c9059ee

Browse files
committed
Bugfix test: use draft version of parent page, see:
https://travis-ci.org/divio/django-cms/jobs/301318149#L894-L900
1 parent 6112eb7 commit c9059ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cms/tests/test_apphooks.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,9 +804,10 @@ def test_get_apps(self):
804804
self.reload_urls()
805805
self.apphook_clear()
806806

807+
parent=titles[0].page.parent.get_draft_object()
807808
page2 = create_page('page2', 'nav_playground.html',
808809
'en', created_by=self.superuser, published=True,
809-
parent=titles[0].page.parent,
810+
parent=parent,
810811
apphook='VariableUrlsApp', reverse_id='page2')
811812
create_title('de', 'de_title', page2, slug='slug')
812813
page2.publish('de')

0 commit comments

Comments
 (0)
0