tests: fix changing ids in workflow tests (#88297)
gitea/wcs/pipeline/head This commit looks good
Details
gitea/wcs/pipeline/head This commit looks good
Details
This commit is contained in:
parent
df546eb981
commit
09018961dd
|
@ -32,6 +32,7 @@ def pub():
|
||||||
|
|
||||||
FormDef.wipe()
|
FormDef.wipe()
|
||||||
TestDef.wipe()
|
TestDef.wipe()
|
||||||
|
WebserviceResponse.wipe()
|
||||||
return pub
|
return pub
|
||||||
|
|
||||||
|
|
||||||
|
@ -508,8 +509,8 @@ def test_workflow_tests_action_assert_webservice_call(pub):
|
||||||
|
|
||||||
resp = app.get('/backoffice/forms/1/tests/%s/workflow/1/' % testdef.id)
|
resp = app.get('/backoffice/forms/1/tests/%s/workflow/1/' % testdef.id)
|
||||||
assert resp.form['webservice_response_id'].options == [
|
assert resp.form['webservice_response_id'].options == [
|
||||||
('1', False, 'Fake response'),
|
(str(response.id), False, 'Fake response'),
|
||||||
('2', False, 'Fake response 2'),
|
(str(response2.id), False, 'Fake response 2'),
|
||||||
]
|
]
|
||||||
assert resp.form['call_count'].value == '1'
|
assert resp.form['call_count'].value == '1'
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue