✨ feat(tests): add __init__.py and utils.py files to tests directory for test setup and utility functions
This commit is contained in:
parent
5b6c732213
commit
141f57958b
2 changed files with 8 additions and 0 deletions
0
tests/__init__.py
Normal file
0
tests/__init__.py
Normal file
8
tests/utils.py
Normal file
8
tests/utils.py
Normal 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()
|
||||
Loading…
Add table
Add a link
Reference in a new issue