Skip to content

Commit 99a0496

Browse files
author
Kristel
committed
some test improvements
1 parent 3790d5f commit 99a0496

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

tado-api-test/src/test/kotlin/tadoclient/apis/BaseTest.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ open class BaseTest(val tadoConfig: TadoConfig) {
4545
}
4646

4747
fun isBridgeConfigured(): Boolean {
48-
// todo: implement
49-
return false
48+
return tadoConfig.bridge != null
5049
}
5150

5251
fun isInstallationConfigured(): Boolean {

tado-api-test/src/test/kotlin/tadoclient/apis/ReportApi_IT.kt

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,14 @@ class ReportApi_IT (
4444
@EnabledIf(value = "isHomeAndHeatingZoneConfigured", disabledReason = "no home and/or heating zone specified in tado set-up")
4545
fun getDayReport_HEATING() {
4646
// operation not supported for zones of type HOT_WATER
47-
val endpoint = "GET /homes/{homeId}/zones/{zoneId}/dayReport"
47+
val endpoint = "GET /homes/{homeId}/zones/{zoneId}/dayReport - HEATING zone"
4848
val dayReport = assertCorrectResponse { tadoStrictReportAPI.getZoneDayReport(tadoConfig.home!!.id, tadoConfig.zone!!.heating!!.id, LocalDate.of(2024, Month.JANUARY, 11)) }
4949
assertNotNull(dayReport)
5050
verifyDayReport(dayReport, endpoint, ancestorObjectProps = mapOf(ZONE_TYPE to ZoneType.HEATING))
5151
}
5252

5353
@Test
54-
@DisplayName("GET /homes/{homeId}/zones/{zoneId}/dayReport")
54+
@DisplayName("GET /homes/{homeId}/zones/{zoneId}/dayReport - AIR_CONDITIONING zone")
5555
@Order(2)
5656
@EnabledIf(value = "isHomeAndAirConZoneConfigured", disabledReason = "no home and/or aircon zone specified in tado set-up")
5757
fun getDayReport_AIRCON() {

0 commit comments

Comments
 (0)