From 141f57958bbc70c97a19440eaedff3554b0a99b9 Mon Sep 17 00:00:00 2001 From: Gabriel Luiz Freitas Almeida Date: Tue, 5 Sep 2023 12:24:43 -0300 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(tests):=20add=20=5F=5Finit=5F?= =?UTF-8?q?=5F.py=20and=20utils.py=20files=20to=20tests=20directory=20for?= =?UTF-8?q?=20test=20setup=20and=20utility=20functions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/__init__.py | 0 tests/utils.py | 8 ++++++++ 2 files changed, 8 insertions(+) create mode 100644 tests/__init__.py create mode 100644 tests/utils.py diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/tests/utils.py b/tests/utils.py new file mode 100644 index 000000000..ce913c4b9 --- /dev/null +++ b/tests/utils.py @@ -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()