chore: fix all ruff lint errors + format — 0 errors, 306 tests pass
This commit is contained in:
@@ -5,7 +5,7 @@ from __future__ import annotations
|
||||
import pytest
|
||||
from httpx import AsyncClient
|
||||
|
||||
from tests.conftest import ORIGIN_HEADER, seed_tenant_and_users, login_client
|
||||
from tests.conftest import ORIGIN_HEADER, login_client, seed_tenant_and_users
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
@@ -186,7 +186,7 @@ class TestCompanyDelete:
|
||||
json={"first_name": "John", "last_name": "Doe", "company_ids": [company_id]},
|
||||
headers=ORIGIN_HEADER,
|
||||
)
|
||||
contact_id = cont_resp.json()["id"]
|
||||
cont_resp.json()["id"]
|
||||
# Verify link exists
|
||||
detail_resp = await client.get(f"/api/v1/companies/{company_id}", headers=ORIGIN_HEADER)
|
||||
assert len(detail_resp.json()["contacts"]) == 1
|
||||
@@ -318,7 +318,9 @@ class TestCompanyAuditAndSoftDelete:
|
||||
async def test_audit_log_on_company_create(self, client: AsyncClient, db_session):
|
||||
"""AC 23: Audit log entry on every company/contact mutation."""
|
||||
from sqlalchemy import select
|
||||
|
||||
from app.models.audit import AuditLog
|
||||
|
||||
await seed_tenant_and_users(db_session)
|
||||
await login_client(client, "admin@tenanta.com")
|
||||
await client.post(
|
||||
|
||||
Reference in New Issue
Block a user