
Ben WestandCopilot
269170b970
fixtures: add NightscoutKit devicestatus fixtures for array testing
Extract devicestatus structure from NightscoutKit Swift source:
- DeviceStatus.swift: top-level structure with device, created_at, identifier
- LoopStatus.swift: name, version, iob, cob, predicted, enacted, failureReason
- PumpStatus.swift: pumpID, manufacturer, model, reservoir, battery
- IOBStatus.swift: iob, basaliob with timestamp
- COBStatus.swift: cob with timestamp
- PredictedBG.swift: startDate, values array, optional COB/IOB curves
- LoopEnacted.swift: rate, duration (minutes), received, bolusVolume
- UploaderStatus.swift: name, battery percentage
- BatteryStatus.swift: percent, voltage, status
Fixtures include:
- minimal: Just device and timestamp
- loopWithIOBCOB: Loop status with IOB/COB
- fullLoop: Complete status with pump, predictions, enacted
- withEnacted: Status with active temp basal
- withFailure: Status with failureReason
- withAutoBolus: Status with automatic dose recommendation
- withMultiplePredictions: COB and IOB prediction curves
- singleArray: Single status in array format
- batchArray: 3 statuses for batch upload testing
- helpers: Factory functions for building custom fixtures
NightscoutKit sends devicestatus as arrays (NightscoutClient.swift:646-647).
Sources:
externals/NightscoutKit/Sources/NightscoutKit/Models/DeviceStatus.swift
externals/NightscoutKit/Sources/NightscoutKit/Models/LoopStatus.swift
externals/NightscoutKit/Sources/NightscoutKit/Models/PumpStatus.swift
externals/NightscoutKit/Sources/NightscoutKit/Models/IOBStatus.swift
externals/NightscoutKit/Sources/NightscoutKit/Models/COBStatus.swift
externals/NightscoutKit/Sources/NightscoutKit/Models/PredictedBG.swift
externals/NightscoutKit/Sources/NightscoutKit/Models/LoopEnacted.swift
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-18 10:32:03 -07:00
..
2026-03-18 10:32:03 -07:00
2026-01-19 13:14:46 -08:00
2021-02-18 18:23:40 +02:00
2022-08-30 12:49:01 +03:00
2026-01-19 13:14:21 -08:00
2021-01-07 22:58:23 +02:00
2026-03-10 16:13:51 -07:00
2023-02-18 16:12:47 +02:00
2023-02-18 16:12:47 +02:00
2026-03-06 21:35:16 +00:00
2026-03-06 21:35:16 +00:00
2023-02-18 16:12:47 +02:00
2026-01-19 13:14:21 -08:00
2026-03-06 21:35:16 +00:00
2023-02-18 16:12:47 +02:00
2026-01-19 13:14:21 -08:00
2023-02-18 16:12:47 +02:00
2026-03-06 21:35:16 +00:00
2026-03-06 21:35:16 +00:00
2026-01-19 22:47:02 +00:00
2026-01-19 22:47:02 +00:00
2021-02-02 19:53:30 +02:00
2026-03-12 14:16:21 -07:00
2026-01-19 22:47:02 +00:00
2026-01-19 13:13:43 -08:00
2026-03-11 14:36:23 -07:00
2026-01-19 22:47:02 +00:00
2026-01-19 22:47:02 +00:00
2026-01-19 22:47:02 +00:00
2019-10-30 22:55:23 +01:00
2026-01-19 18:50:11 -08:00
2026-01-19 13:14:46 -08:00
2021-02-02 19:53:30 +02:00
2026-03-10 15:26:39 -07:00
2026-01-19 13:13:43 -08:00
2026-01-19 22:47:02 +00:00
2021-02-02 19:53:30 +02:00
2023-01-01 19:14:59 +02:00
2023-01-01 19:14:59 +02:00
2023-01-01 19:14:59 +02:00
2026-03-17 13:28:12 -07:00
2021-12-10 00:46:34 +00:00
2023-01-01 19:14:59 +02:00
2026-03-10 15:00:16 -07:00
2021-02-02 19:53:30 +02:00
2026-03-12 12:24:15 -07:00
2020-05-05 22:13:21 +03:00
2015-11-16 21:39:10 +01:00
2023-01-01 19:14:59 +02:00
2026-01-19 13:14:21 -08:00
2021-02-08 19:28:49 +02:00
2016-10-15 10:54:20 -07:00
2021-02-02 19:53:30 +02:00
2026-03-06 21:35:16 +00:00
2018-07-27 16:04:07 +03:00
2021-02-02 19:53:30 +02:00
2021-02-02 19:53:30 +02:00
2020-01-14 15:33:56 +00:00
2019-11-10 21:57:49 +00:00
2026-01-19 13:15:09 -08:00
2026-03-10 14:54:00 -07:00
2023-01-24 19:43:45 +02:00
2026-03-12 12:39:01 -07:00
2026-03-17 15:21:25 -07:00
2023-01-01 19:14:59 +02:00
2023-01-01 19:14:59 +02:00
2023-01-01 19:14:59 +02:00
2026-03-06 23:24:50 +00:00
2015-07-12 23:46:21 -07:00
2023-01-01 19:14:59 +02:00
2020-12-14 22:08:53 +02:00
2016-01-07 12:17:02 -08:00
2026-01-19 13:15:09 -08:00
2021-02-02 19:53:30 +02:00
2021-02-02 19:53:30 +02:00
2020-12-14 22:08:53 +02:00
2026-03-17 16:00:03 -07:00
2026-03-06 23:42:58 +00:00
2021-02-02 19:53:30 +02:00
2018-09-29 14:49:56 +02:00
2016-10-15 10:54:20 -07:00
2023-01-01 19:14:59 +02:00
2021-01-17 12:20:48 +02:00
2023-01-01 19:14:59 +02:00
2021-02-02 19:53:30 +02:00
2020-12-14 22:30:21 +02:00
2026-03-08 01:01:57 +00:00
2020-11-17 14:17:17 +02:00
2026-01-20 02:05:33 +00:00
2021-01-31 12:41:00 +02:00
2021-02-02 19:53:30 +02:00
2021-02-06 19:11:36 +02:00
2023-01-01 19:14:59 +02:00
2020-02-22 17:07:21 +02:00
2026-03-10 15:03:48 -07:00
2021-02-02 19:53:30 +02:00
2026-03-18 10:24:48 -07:00
2021-02-02 19:53:30 +02:00
2015-07-29 00:24:13 -07:00
2021-02-02 19:53:30 +02:00
2020-01-12 18:46:08 +00:00
2020-12-14 22:08:53 +02:00
2023-01-01 19:14:59 +02:00
2026-03-17 17:17:33 -07:00
2021-02-02 19:53:30 +02:00
2026-03-12 14:09:36 -07:00
2026-01-19 22:47:02 +00:00