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
1
Issues
1
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Roque
erp5
Commits
3ca5cfd2
Commit
3ca5cfd2
authored
Mar 13, 2017
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
BT5: missing test for getInstalledBusinessTemplate with never installed BT
parent
89be9bdc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
product/ERP5/tests/testTemplateTool.py
product/ERP5/tests/testTemplateTool.py
+9
-0
No files found.
product/ERP5/tests/testTemplateTool.py
View file @
3ca5cfd2
...
@@ -340,6 +340,15 @@ class TestTemplateTool(ERP5TypeTestCase):
...
@@ -340,6 +340,15 @@ class TestTemplateTool(ERP5TypeTestCase):
self
.
assertEqual
(
None
,
self
.
assertEqual
(
None
,
self
.
portal
.
portal_templates
.
getInstalledBusinessTemplate
(
'test_bt_%s'
%
self
.
id
()))
self
.
portal
.
portal_templates
.
getInstalledBusinessTemplate
(
'test_bt_%s'
%
self
.
id
()))
def
test_getInstalledBusinessTemplate_never_installed
(
self
):
never_installed_bt
=
self
.
portal
.
portal_templates
.
newContent
(
portal_type
=
'Business Template'
,
title
=
'never_installed_bt_%s'
%
self
.
id
())
self
.
tic
()
self
.
assertEqual
(
None
,
self
.
portal
.
portal_templates
.
getInstalledBusinessTemplate
(
'never_installed_bt_%s'
%
self
.
id
()))
def
test_revision
(
self
):
def
test_revision
(
self
):
template_tool
=
self
.
portal
.
portal_templates
template_tool
=
self
.
portal
.
portal_templates
getInstalledRevision
=
template_tool
.
getInstalledBusinessTemplateRevision
getInstalledRevision
=
template_tool
.
getInstalledBusinessTemplateRevision
...
...
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