Skip to content

Commit 630f6b4

Browse files
committed
Fixed tests
1 parent 35d92a0 commit 630f6b4

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

src/imio/helpers/tests/test_setup.py

+2-10
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
from imio.helpers.testing import IntegrationTestCase
77
from plone import api
88

9-
import six
109
import unittest
1110

1211

@@ -19,20 +18,13 @@ def setUp(self):
1918
self.portal = self.layer['portal']
2019

2120
def test_load_type_from_package(self):
22-
if six.PY3:
23-
from Products.CMFPlone.utils import get_installer
24-
installer = get_installer(self.portal)
25-
installer.install_product("plone.app.discussion")
26-
2721
types_tool = api.portal.get_tool('portal_types')
28-
portal_type = types_tool.get('Discussion Item')
22+
portal_type = types_tool.get('File')
2923
self.assertTrue(portal_type.filter_content_types)
3024
portal_type.filter_content_types = False
3125
self.assertFalse(portal_type.filter_content_types)
3226
self.assertTrue(load_type_from_package(
33-
'Discussion Item', 'plone.app.discussion:default'))
34-
portal_type = types_tool.get('Discussion Item')
35-
self.assertTrue(portal_type.filter_content_types)
27+
'File', 'profile-Products.CMFPlone:plone'))
3628
# not found portal_type
3729
self.assertFalse(load_type_from_package(
3830
'Folder2', 'profile-Products.CMFPlone:plone'))

0 commit comments

Comments
 (0)