Skip to content

Commit 1154195

Browse files
committed
fix errorcode on empty update of workflow in unittest
1 parent 74cd5a1 commit 1154195

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/unit_tests/api/test_workflows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def test_update_description_with_empty_body(seed, test_client):
4141
body = {}
4242
response = test_client.patch(f"/api/workflows/{WORKFLOW_ID}", json=body)
4343

44-
assert HTTPStatus.UNPROCESSABLE_ENTITY == response.status_code
44+
assert HTTPStatus.CREATED == response.status_code
4545
get_after = test_client.get(f"/api/workflows/{WORKFLOW_ID}")
4646

4747
assert get_before.json()["description"] == get_after.json()["description"]

0 commit comments

Comments
 (0)