Skip to content

Commit

Permalink
Sonarcloud smell resolves continued for Anna (and indenting for exc)
Browse files Browse the repository at this point in the history
  • Loading branch information
CoMPaTech committed Dec 23, 2023
1 parent e905ebf commit 53184e5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_anna.py
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ async def test_connect_anna_heatpump_heating(self):
"standaard",
],
)
_LOGGER.debug("ERROR raised: %s", exc.value)
_LOGGER.debug("ERROR raised setting good schedule standaard: %s", exc.value)

Check warning on line 316 in tests/test_anna.py

View check run for this annotation

Codecov / codecov/patch

tests/test_anna.py#L316

Added line #L316 was not covered by tests

# Now change some data and change directory reading xml from
# emulating reading newer dataset after an update_interval,
Expand Down Expand Up @@ -367,7 +367,7 @@ async def test_connect_anna_heatpump_cooling(self):
"standaard",
],
)
_LOGGER.debug("ERROR raised: %s", exc.value)
_LOGGER.debug("ERROR raised good schedule to standaard: %s", exc.value)

Check warning on line 370 in tests/test_anna.py

View check run for this annotation

Codecov / codecov/patch

tests/test_anna.py#L370

Added line #L370 was not covered by tests

await smile.close_connection()
await self.disconnect(server, client)
Expand Down Expand Up @@ -526,15 +526,15 @@ async def test_connect_anna_loria_heating_idle(self):
"Winter",
],
)
_LOGGER.debug("ERROR raised: %s", exc.value)
_LOGGER.debug("ERROR raised setting to schedule Winter: %s", exc.value)

Check warning on line 529 in tests/test_anna.py

View check run for this annotation

Codecov / codecov/patch

tests/test_anna.py#L529

Added line #L529 was not covered by tests

with pytest.raises(pw_exceptions.PlugwiseError) as exc:
await self.tinker_thermostat_temp(
smile,
"15da035090b847e7a21f93e08c015ebc",
block_cooling=True,
)
_LOGGER.debug("ERROR raised: %s", exc.value)
_LOGGER.debug("ERROR raised setting block cooling: %s", exc.value)

Check warning on line 537 in tests/test_anna.py

View check run for this annotation

Codecov / codecov/patch

tests/test_anna.py#L537

Added line #L537 was not covered by tests

await self.tinker_dhw_mode(smile)

Expand Down

0 comments on commit 53184e5

Please sign in to comment.