kopia lustrzana https://github.com/wagtail/wagtail
Avoid relying on permission_types ordering in test_group_edit_loads_with_page_permissions_shown
rodzic
58f747b955
commit
ab70c3c885
|
@ -566,8 +566,8 @@ class TestGroupEditView(TestCase, WagtailTestUtils):
|
|||
self.root_page.pk
|
||||
)
|
||||
self.assertEqual(
|
||||
page_permissions_formset.forms[0]['permission_types'].value(),
|
||||
['add', 'edit']
|
||||
set(page_permissions_formset.forms[0]['permission_types'].value()),
|
||||
set(['add', 'edit'])
|
||||
)
|
||||
|
||||
# add edit permission on home
|
||||
|
|
Ładowanie…
Reference in New Issue