tests: fix changing ids in workflow tests (#88297)
gitea/wcs/pipeline/head This commit looks good Details

This commit is contained in:
Valentin Deniaud 2024-03-18 14:43:27 +01:00
parent df546eb981
commit 09018961dd
1 changed files with 3 additions and 2 deletions

View File

@ -32,6 +32,7 @@ def pub():
FormDef.wipe()
TestDef.wipe()
WebserviceResponse.wipe()
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)
assert resp.form['webservice_response_id'].options == [
('1', False, 'Fake response'),
('2', False, 'Fake response 2'),
(str(response.id), False, 'Fake response'),
(str(response2.id), False, 'Fake response 2'),
]
assert resp.form['call_count'].value == '1'