Sync completed work orders into vehicle records
Some checks failed
ci / test (push) Has been cancelled
Some checks failed
ci / test (push) Has been cancelled
This commit is contained in:
@@ -73,6 +73,16 @@ async def test_service_visit_owner_confirmation_and_change_request(
|
||||
assert complete_response.json()["status"] == "pending_owner_confirmation"
|
||||
assert confirm_response.json()["status"] == "confirmed"
|
||||
assert approve_response.json()["status"] == "approved"
|
||||
refreshed = await client.get(f"/api/cars/{vehicle['id']}", headers=auth_headers)
|
||||
services = await client.get(f"/api/cars/{vehicle['id']}/service", headers=auth_headers)
|
||||
stats = await client.get(
|
||||
f"/api/cars/{vehicle['id']}/stats?date_from=2026-05-01&date_to=2026-05-31",
|
||||
headers=auth_headers,
|
||||
)
|
||||
assert refreshed.json()["current_odometer"] == 12345
|
||||
assert services.json()[0]["total_cost"] == "100.00"
|
||||
assert stats.json()["service_cost"] == "100.00"
|
||||
assert stats.json()["total_cost"] == "100.00"
|
||||
|
||||
|
||||
@pytest.mark.asyncio
|
||||
|
||||
Reference in New Issue
Block a user