Skip to content

Commit a6fd008

Browse files
committed
Coverage for debug
1 parent 250430e commit a6fd008

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

tests/test_anna.py

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,9 @@ async def test_connect_anna_heatpump_heating(self):
313313
"standaard",
314314
],
315315
)
316-
_LOGGER.debug("ERROR raised setting good schedule standaard: %s", exc.value)
316+
_LOGGER.debug(
317+
"ERROR raised setting good schedule standaard: %s", exc.value
318+
) # pragma: no cover
317319

318320
# Now change some data and change directory reading xml from
319321
# emulating reading newer dataset after an update_interval,
@@ -367,7 +369,9 @@ async def test_connect_anna_heatpump_cooling(self):
367369
"standaard",
368370
],
369371
)
370-
_LOGGER.debug("ERROR raised good schedule to standaard: %s", exc.value)
372+
_LOGGER.debug(
373+
"ERROR raised good schedule to standaard: %s", exc.value
374+
) # pragma: no cover
371375

372376
await smile.close_connection()
373377
await self.disconnect(server, client)
@@ -526,15 +530,19 @@ async def test_connect_anna_loria_heating_idle(self):
526530
"Winter",
527531
],
528532
)
529-
_LOGGER.debug("ERROR raised setting to schedule Winter: %s", exc.value)
533+
_LOGGER.debug(
534+
"ERROR raised setting to schedule Winter: %s", exc.value
535+
) # pragma: no cover
530536

531537
with pytest.raises(pw_exceptions.PlugwiseError) as exc:
532538
await self.tinker_thermostat_temp(
533539
smile,
534540
"15da035090b847e7a21f93e08c015ebc",
535541
block_cooling=True,
536542
)
537-
_LOGGER.debug("ERROR raised setting block cooling: %s", exc.value)
543+
_LOGGER.debug(
544+
"ERROR raised setting block cooling: %s", exc.value
545+
) # pragma: no cover
538546

539547
await self.tinker_dhw_mode(smile)
540548

0 commit comments

Comments
 (0)