|
@@ -127,21 +127,6 @@ import Testing
|
|
|
#expect(notUploadedEntries[0].glucose == 160, "Glucose value should match")
|
|
#expect(notUploadedEntries[0].glucose == 160, "Glucose value should match")
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @Test("Get manual glucose not yet uploaded to Nightscout") func testGetManualGlucoseNotYetUploadedToNightscout() async throws {
|
|
|
|
|
- // Given
|
|
|
|
|
- storage.addManualGlucose(glucose: 180)
|
|
|
|
|
-
|
|
|
|
|
- // When
|
|
|
|
|
- let notUploadedEntries = try await storage.getManualGlucoseNotYetUploadedToNightscout()
|
|
|
|
|
-
|
|
|
|
|
- // Then
|
|
|
|
|
- #expect(!notUploadedEntries.isEmpty, "Should have manual entries not uploaded to NS")
|
|
|
|
|
- let entry = notUploadedEntries[0]
|
|
|
|
|
- #expect(entry.glucose == "180", "Glucose value should match")
|
|
|
|
|
- #expect(entry.glucoseType == "Manual", "Type should be mbg for manual entries")
|
|
|
|
|
- #expect(entry.eventType == .capillaryGlucose, "Type should be capillaryGlucose")
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
@Test(
|
|
@Test(
|
|
|
"Test glucose alarms",
|
|
"Test glucose alarms",
|
|
|
.enabled(if: false, "Flaky test, disabled while investigating")
|
|
.enabled(if: false, "Flaky test, disabled while investigating")
|