feat(tests): add __init__.py and utils.py files to tests directory for test setup and utility functions

This commit is contained in:
Gabriel Luiz Freitas Almeida 2023-09-05 12:24:43 -03:00
commit 141f57958b
2 changed files with 8 additions and 0 deletions

0
tests/__init__.py Normal file
View file

8
tests/utils.py Normal file
View file

@ -0,0 +1,8 @@
def run_post(client, flow_id, headers, post_data):
response = client.post(
f"api/v1/process/{flow_id}",
headers=headers,
json=post_data,
)
assert response.status_code == 200, response.json()
return response.json()