fix(tests): backend test suite - app version, DB roles, admin RBAC, companies route, field names, DeletionLog, ABAC, imports
This commit is contained in:
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user