Refactor client view

This commit is contained in:
2025-06-06 07:32:51 +02:00
parent a7a09f7784
commit aa6b55a911
8 changed files with 144 additions and 319 deletions

View File

@ -20,7 +20,7 @@ handler = logging.StreamHandler()
formatter = logging.Formatter("'%(asctime)s - %(levelname)s - %(message)s'")
handler.setFormatter(formatter)
LOG.addHandler(handler)
LOG.setLevel(logging.DEBUG)
#LOG.setLevel(logging.DEBUG)
def make_test_key() -> str:
@ -473,7 +473,7 @@ def test_operations_with_id(test_client: TestClient) -> None:
data = resp.json()
client = data["clients"][0]
client_id = client["id"]
resp = test_client.get(f"/api/v1/clients/{client_id}")
resp = test_client.get(f"/api/v1/clients/by-id/{client_id}")
assert resp.status_code == 200
data = resp.json()
assert data["name"] == "test"