From 0f7b5e396f1ceb726a1383536f0d37f54c95b782 Mon Sep 17 00:00:00 2001 From: Georg-Stahn Date: Sat, 2 Dec 2023 12:41:21 +0100 Subject: [PATCH] changed data to json to fix nix and pytest --- pkgs/clan-cli/tests/test_db_api.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/clan-cli/tests/test_db_api.py b/pkgs/clan-cli/tests/test_db_api.py index 8e4612e..99aa7cd 100644 --- a/pkgs/clan-cli/tests/test_db_api.py +++ b/pkgs/clan-cli/tests/test_db_api.py @@ -1,4 +1,3 @@ -import json from typing import Any from api import TestClient @@ -30,7 +29,7 @@ def make_test_post_and_get( # test post response = api.post( f"/api/{apiversion}/create_{paramter}", - data={"data": json.dumps(request_body)}, + json=request_body, headers={"Content-Type": "application/json"}, ) assert response.status_code == 200