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
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
Laurent S
erp5
Commits
a0d1ba54
Commit
a0d1ba54
authored
Jul 20, 2011
by
Rafael Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return revision to original value.
parent
448bf18f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
product/ERP5/tests/testTemplateTool.py
product/ERP5/tests/testTemplateTool.py
+12
-7
No files found.
product/ERP5/tests/testTemplateTool.py
View file @
a0d1ba54
...
@@ -71,17 +71,22 @@ class TestTemplateTool(ERP5TypeTestCase):
...
@@ -71,17 +71,22 @@ class TestTemplateTool(ERP5TypeTestCase):
bt_list
=
self
.
templates_tool
.
searchFolder
(
title
=
'erp5_base'
)
bt_list
=
self
.
templates_tool
.
searchFolder
(
title
=
'erp5_base'
)
self
.
assertEquals
(
len
(
bt_list
),
1
)
self
.
assertEquals
(
len
(
bt_list
),
1
)
erp5_base
=
bt_list
[
0
].
getObject
()
erp5_base
=
bt_list
[
0
].
getObject
()
erp5_base
.
edit
(
revision
=
int
(
erp5_base
.
getRevision
())
-
10
)
try
:
erp5_base
.
edit
(
revision
=
int
(
erp5_base
.
getRevision
())
-
10
)
updatable_bt_list
=
self
.
templates_tool
.
getRepositoryBusinessTemplateList
(
update_only
=
True
)
updatable_bt_list
=
\
self
.
assertEqual
(
self
.
templates_tool
.
getRepositoryBusinessTemplateList
(
update_only
=
True
)
[
i
.
title
for
i
in
updatable_bt_list
if
i
.
title
==
"erp5_base"
],
self
.
assertEqual
(
[
i
.
title
for
i
in
updatable_bt_list
if
i
.
title
==
"erp5_base"
],
[
"erp5_base"
])
[
"erp5_base"
])
erp5_base
.
replace
()
erp5_base
.
replace
()
updatable_bt_list
=
self
.
templates_tool
.
getRepositoryBusinessTemplateList
(
update_only
=
True
)
updatable_bt_list
=
\
self
.
assertEqual
(
self
.
templates_tool
.
getRepositoryBusinessTemplateList
(
update_only
=
True
)
self
.
assertEqual
(
[
i
.
title
for
i
in
updatable_bt_list
if
i
.
title
==
"erp5_base"
],
[
i
.
title
for
i
in
updatable_bt_list
if
i
.
title
==
"erp5_base"
],
[])
[])
finally
:
erp5_base
.
edit
(
revision
=
int
(
erp5_base
.
getRevision
())
+
10
)
def
test_download_http
(
self
):
def
test_download_http
(
self
):
test_web
=
self
.
portal
.
portal_templates
.
download
(
test_web
=
self
.
portal
.
portal_templates
.
download
(
...
...
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