Skip to content
Snippets Groups Projects
Commit 0a92f445 authored by Karel van Klink's avatar Karel van Klink :smiley_cat:
Browse files

Merge branch 'feature/fix-tests' into 'develop'

reintroduce a time.sleep() that was necessary

See merge request !33
parents 3968329f 885ac4c8
No related branches found
No related tags found
1 merge request!33reintroduce a time.sleep() that was necessary
...@@ -115,6 +115,8 @@ def test_ip_trunk_provisioning(client): ...@@ -115,6 +115,8 @@ def test_ip_trunk_provisioning(client):
rv = client.post('/api/ip_trunk/', json=params) rv = client.post('/api/ip_trunk/', json=params)
assert rv.status_code == 200 assert rv.status_code == 200
response = rv.json() response = rv.json()
# wait a second for the run thread to finish
time.sleep(1)
jsonschema.validate(response, PlaybookLaunchResponse.schema()) jsonschema.validate(response, PlaybookLaunchResponse.schema())
responses.assert_call_count(TEST_CALLBACK_URL, 1) responses.assert_call_count(TEST_CALLBACK_URL, 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment