@@ -20,25 +20,25 @@ def mock_geotab_api():
2020 # Mock for .get("Device")
2121 instance .get .return_value = [{"id" : "device1" , "name" : "Test Vehicle" , "deviceType" : "GO9" }]
2222
23- # Prepare mock results for multi_call: status, 24 diagnostics, faults, diagnostics_lookup, and trips
23+ # Prepare mock results for multi_call: status, 25 diagnostics, faults, diagnostics_lookup, and trips
2424 # Order MUST match api.py _blocking_fetch_all and const.py DIAGNOSTICS_TO_FETCH
2525 instance .multi_call .return_value = [
2626 # 0. Status
2727 [{"device" : {"id" : "device1" }, "latitude" : 45.0 , "longitude" : 9.0 , "isDriving" : True , "speed" : 50.0 , "dateTime" : "2026-03-08T10:00:00Z" }],
28- # 1. diag_odometer (Adjustment )
29- [{"device" : {"id" : "device1" }, "data" : 100000 , "dateTime" : "9999-12-31T23:59:59Z" }],
28+ # 1. diag_odometer (AdjustmentId )
29+ [{"device" : {"id" : "device1" }, "data" : 53203700 , "dateTime" : "9999-12-31T23:59:59Z" }],
3030 # 2. diag_odometer_raw (OdometerId)
31- [{"device" : {"id" : "device1" }, "data" : 100000 , "dateTime" : "2026-03-08T10:00:00Z" }],
31+ [{"device" : {"id" : "device1" }, "data" : 52015700 , "dateTime" : "2026-03-08T10:00:00Z" }],
3232 # 3. diag_total_distance
33- [{"device" : {"id" : "device1" }, "data" : 100000 , "dateTime" : "2026-03-08T10:00:00Z" }],
33+ [{"device" : {"id" : "device1" }, "data" : 53203700 , "dateTime" : "2026-03-08T10:00:00Z" }],
3434 # 4. diag_ignition
3535 [{"device" : {"id" : "device1" }, "data" : 1 , "dateTime" : "2026-03-08T10:00:00Z" }],
3636 # 5. diag_voltage
3737 [{"device" : {"id" : "device1" }, "data" : 13.5 , "dateTime" : "2026-03-08T10:00:00Z" }],
38- # 6. diag_fuel_level
39- [{"device" : {"id" : "device1" }, "data" : 75.0 , "dateTime" : "2026-03-08T10:00:00Z" }],
40- # 7. diag_fuel_level_raw
38+ # 6. diag_fuel_level (PercentageId)
4139 [{"device" : {"id" : "device1" }, "data" : 38.03 , "dateTime" : "2026-03-08T10:00:00Z" }],
40+ # 7. diag_fuel_level_raw (FuelLevelId)
41+ [{"device" : {"id" : "device1" }, "data" : 33.32 , "dateTime" : "2026-03-08T10:00:00Z" }],
4242 # 8. diag_fuel_rate
4343 [{"device" : {"id" : "device1" }, "data" : 8.5 , "dateTime" : "2026-03-08T10:00:00Z" }],
4444 # 9. diag_rpm
0 commit comments