Add service center card interactions

This commit is contained in:
VPN SaaS Dev
2026-05-14 19:43:51 +09:00
parent caa5f6d3db
commit a83f55c646
5 changed files with 190 additions and 3 deletions

View File

@@ -139,6 +139,21 @@ async def test_public_service_center_and_review_flow(
refreshed = await client.get(f"/api/service-centers/{center['id']}", headers=auth_headers)
assert refreshed.json()["reviews_count"] == 1
vehicle = (
await client.post(
"/api/my/vehicles",
headers=auth_headers,
json={"name": "Review car"},
)
).json()
link = await client.post(
f"/api/service-centers/{center['id']}/vehicle-links/owner-attach",
headers=auth_headers,
json={"car_id": vehicle["id"], "access_level": "basic"},
)
assert link.status_code == 200
assert link.json()["status"] == "approved"
@pytest.mark.asyncio
async def test_ocr_candidates_do_not_write_vehicle_data(client, auth_headers) -> None: