Sync completed work orders into vehicle records
Some checks failed
ci / test (push) Has been cancelled

This commit is contained in:
VPN SaaS Dev
2026-05-16 12:17:45 +09:00
parent ecfb5aa949
commit 069b0a66c0
7 changed files with 68 additions and 4 deletions

View File

@@ -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