Skip to content

Commit 073b45f

Browse files
committed
improve generated test_ct_..._adding method
1 parent 39de6b8 commit 073b45f

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

bobtemplates/plone/content_type/tests/test_ct_+dexterity_type_name_normalized+.py.bob

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,19 +96,11 @@ class {{{ dexterity_type_name_klass }}}IntegrationTest(unittest.TestCase):
9696

9797
def test_ct_{{{ dexterity_type_name_normalized }}}_adding(self):
9898
setRoles(self.portal, TEST_USER_ID, ['Contributor'])
99-
{{% if dexterity_parent_container_type_name %}}
10099
obj = api.content.create(
101100
container=self.parent,
102101
type='{{{ dexterity_type_name }}}',
103102
id='{{{ dexterity_type_name_normalized }}}',
104103
)
105-
{{% else %}}
106-
obj = api.content.create(
107-
container=self.portal,
108-
type='{{{ dexterity_type_name }}}',
109-
id='{{{ dexterity_type_name_normalized }}}',
110-
)
111-
{{% endif %}}
112104

113105
{{% if dexterity_type_create_class %}}
114106
self.assertTrue(

0 commit comments

Comments
 (0)