Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
preetwinder
erp5
Commits
666709fb
Commit
666709fb
authored
Sep 22, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
testBusinessTemplate: Use different business templates names in each tests
Quick way to isolate tests
parent
e523fd6f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
product/ERP5/tests/testBusinessTemplate.py
product/ERP5/tests/testBusinessTemplate.py
+6
-6
product/ERP5/tests/test_data/test_167_InstanceAndRelatedClassDefinedInSameBT/bt/title
.../test_167_InstanceAndRelatedClassDefinedInSameBT/bt/title
+1
-1
No files found.
product/ERP5/tests/testBusinessTemplate.py
View file @
666709fb
...
...
@@ -6333,7 +6333,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
# check the previously existing instance now behaves as the overriden class
self
.
assertTrue
(
getattr
(
portal
.
another_file
,
'isClassOverriden'
,
False
))
# test uninstall is effective
self
.
uninstallBusinessTemplate
(
'test_
bt
'
)
self
.
uninstallBusinessTemplate
(
'test_
167_InstanceAndRelatedClassDefinedInSameBT
'
)
# check both File instances no longer behave like being overriden
self
.
assertFalse
(
getattr
(
portal
.
another_file
,
'isClassOverriden'
,
False
))
...
...
@@ -6375,7 +6375,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
bt
=
self
.
portal
.
portal_templates
.
newContent
(
portal_type
=
'Business Template'
,
title
=
'test_bt
'
,
title
=
'test_bt
_%s'
%
self
.
id
()
,
template_tool_id_list
=
(
'dummy_type_provider'
,
),
template_portal_type_id_list
=
(
'Dummy Type'
,),
template_portal_type_role_list
=
(
'Dummy Type'
,
),
...
...
@@ -6473,7 +6473,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
bt
=
self
.
portal
.
portal_templates
.
newContent
(
portal_type
=
'Business Template'
,
title
=
'test_bt
'
,
title
=
'test_bt
_%s'
%
self
.
id
()
,
template_tool_id_list
=
(
'dummy_type_provider'
,
),)
self
.
tic
()
bt
.
build
()
...
...
@@ -6506,7 +6506,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
# contain type_provider.
bt
=
self
.
portal
.
portal_templates
.
newContent
(
portal_type
=
'Business Template'
,
title
=
'test_bt
'
,)
title
=
'test_bt
_%s'
%
self
.
id
()
,)
self
.
tic
()
bt
.
build
()
self
.
tic
()
...
...
@@ -6536,7 +6536,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
bt
=
self
.
portal
.
portal_templates
.
newContent
(
portal_type
=
'Business Template'
,
title
=
'test_bt
'
,
title
=
'test_bt
_%s'
%
self
.
id
()
,
template_action_path_list
=
(
'portal_actions | test_global_action'
,),)
self
.
tic
()
...
...
@@ -6583,7 +6583,7 @@ class TestBusinessTemplate(BusinessTemplateMixin):
bt
=
self
.
portal
.
portal_templates
.
newContent
(
portal_type
=
'Business Template'
,
title
=
'test_bt
'
,
title
=
'test_bt
_%s'
%
self
.
id
()
,
template_path_list
=
(
'exported_path'
,))
self
.
tic
()
...
...
product/ERP5/tests/test_data/test_167_InstanceAndRelatedClassDefinedInSameBT/bt/title
View file @
666709fb
test_bt
\ No newline at end of file
test_167_InstanceAndRelatedClassDefinedInSameBT
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment