Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ New features:

Bug fixes:

- add min_version = 4.11.0 to addon tempalte tox.ini
- add min_version = 4.11.0 to addon template tox.ini
[MrTango]

- improve generated test_ct_..._adding method
[MrTango]


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,11 @@ class {{{ dexterity_type_name_klass }}}IntegrationTest(unittest.TestCase):

def test_ct_{{{ dexterity_type_name_normalized }}}_adding(self):
setRoles(self.portal, TEST_USER_ID, ['Contributor'])
{{% if dexterity_parent_container_type_name %}}
obj = api.content.create(
container=self.parent,
type='{{{ dexterity_type_name }}}',
id='{{{ dexterity_type_name_normalized }}}',
)
{{% else %}}
obj = api.content.create(
container=self.portal,
type='{{{ dexterity_type_name }}}',
id='{{{ dexterity_type_name_normalized }}}',
)
{{% endif %}}

{{% if dexterity_type_create_class %}}
self.assertTrue(
Expand Down