fix(tests): backend test suite - app version, DB roles, admin RBAC, companies route, field names, DeletionLog, ABAC, imports

This commit is contained in:
Agent Zero
2026-08-08 08:09:23 +02:00
parent 1ed97d6727
commit 1b1cbc05dd
16 changed files with 457 additions and 61 deletions
+3 -3
View File
@@ -183,7 +183,7 @@ class TestCompanyDelete:
company_id = comp_resp.json()["id"]
cont_resp = await client.post(
"/api/v1/contacts",
json={"first_name": "John", "last_name": "Doe", "company_ids": [company_id]},
json={"firstname": "John", "surname": "Doe", "company_ids": [company_id]},
headers=ORIGIN_HEADER,
)
cont_resp.json()["id"]
@@ -214,7 +214,7 @@ class TestCompanyContactLink:
company_id = comp_resp.json()["id"]
cont_resp = await client.post(
"/api/v1/contacts",
json={"first_name": "Jane", "last_name": "Smith"},
json={"firstname": "Jane", "surname": "Smith"},
headers=ORIGIN_HEADER,
)
contact_id = cont_resp.json()["id"]
@@ -239,7 +239,7 @@ class TestCompanyContactLink:
company_id = comp_resp.json()["id"]
cont_resp = await client.post(
"/api/v1/contacts",
json={"first_name": "Bob", "last_name": "Wilson"},
json={"firstname": "Bob", "surname": "Wilson"},
headers=ORIGIN_HEADER,
)
contact_id = cont_resp.json()["id"]