File tree 1 file changed +2
-10
lines changed
1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change 6
6
from imio .helpers .testing import IntegrationTestCase
7
7
from plone import api
8
8
9
- import six
10
9
import unittest
11
10
12
11
@@ -19,20 +18,13 @@ def setUp(self):
19
18
self .portal = self .layer ['portal' ]
20
19
21
20
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
-
27
21
types_tool = api .portal .get_tool ('portal_types' )
28
- portal_type = types_tool .get ('Discussion Item ' )
22
+ portal_type = types_tool .get ('File ' )
29
23
self .assertTrue (portal_type .filter_content_types )
30
24
portal_type .filter_content_types = False
31
25
self .assertFalse (portal_type .filter_content_types )
32
26
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' ))
36
28
# not found portal_type
37
29
self .assertFalse (load_type_from_package (
38
30
'Folder2' , 'profile-Products.CMFPlone:plone' ))
You can’t perform that action at this time.
0 commit comments