Update test data in test code

pull/2127/merge
Mikalai Radchuk 2017-01-22 10:55:24 +03:00 zatwierdzone przez Karl Hobley
rodzic 59a9a9e87b
commit 372a30ab1f
1 zmienionych plików z 12 dodań i 3 usunięć

Wyświetl plik

@ -230,13 +230,22 @@ class TestChooseParentViewForNonSuperuser(TestCase, WagtailTestUtils):
def setUp(self):
homepage = Page.objects.get(url_path='/home/')
business_index = BusinessIndex(title='Public Business Index')
business_index = BusinessIndex(
title='Public Business Index',
draft_title='Public Business Index',
)
homepage.add_child(instance=business_index)
another_business_index = BusinessIndex(title='Another Business Index')
another_business_index = BusinessIndex(
title='Another Business Index',
draft_title='Another Business Index',
)
homepage.add_child(instance=another_business_index)
secret_business_index = BusinessIndex(title='Private Business Index')
secret_business_index = BusinessIndex(
title='Private Business Index',
draft_title='Private Business Index',
)
homepage.add_child(instance=secret_business_index)
business_editors = Group.objects.create(name='Business editors')