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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
35732fcb
Commit
35732fcb
authored
Aug 03, 2020
by
Romain Courteaud
🐙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XXX use self.publish
parent
1b2774b0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
product/ERP5Type/tests/testUpgradeInstanceWithOldDataFs.py
product/ERP5Type/tests/testUpgradeInstanceWithOldDataFs.py
+25
-0
No files found.
product/ERP5Type/tests/testUpgradeInstanceWithOldDataFs.py
View file @
35732fcb
...
...
@@ -152,6 +152,7 @@ class TestUpgradeInstanceWithOldDataFs(ERP5TypeTestCase):
self
.
assertNotEquals
([
x
.
detail
for
x
in
alarm
.
getLastActiveProcess
().
getResultList
()],
[])
# Solve divergencies, like called from the form_dialog
"""
fake_request = do_fake_request("POST", data=(
('dialog_method', 'Alarm_solve'),
('dialog_id', 'Alarm_viewSolveDialog'),
...
...
@@ -167,6 +168,30 @@ class TestUpgradeInstanceWithOldDataFs(ERP5TypeTestCase):
)
self.assertEqual(fake_request.RESPONSE.status, 302)
alarm.Alarm_solve()
"""
ret
=
self
.
publish
(
'%s/portal_alarms/promise_check_upgrade'
%
self
.
portal
.
getPath
(),
basic
=
'%s:current'
%
self
.
id
(),
stdin
=
StringIO
(
urllib
.
urlencode
({
'Base_callDialogMethod:method'
:
''
,
'dialog_id'
:
'Alarm_viewSolveDialog'
,
'dialog_method'
:
'Alarm_solve'
,
'form_id'
:
'Alarm_view'
,
'selection_name'
:
'foo_selection'
,
})),
request_method
=
"POST"
,
handle_errors
=
False
)
self
.
assertEqual
(
httplib
.
FOUND
,
ret
.
getStatus
())
ret
=
self
.
publish
(
ret
.
getHeader
(
'Location'
),
basic
=
'%s:current'
%
self
.
id
(),
request_method
=
"GET"
,
handle_errors
=
False
)
self
.
assertEqual
(
httplib
.
OK
,
ret
.
getStatus
())
# alarm.solve()
self
.
tic
()
...
...
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