Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Binh
erp5
Commits
3ca5cfd2
Commit
3ca5cfd2
authored
8 years ago
by
Jérome Perrin
Browse files
Options
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):
self
.
assertEqual
(
None
,
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
):
template_tool
=
self
.
portal
.
portal_templates
getInstalledRevision
=
template_tool
.
getInstalledBusinessTemplateRevision
...
...
This diff is collapsed.
Click to expand it.
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