Skip to content

Commit

Permalink
more coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
firstof9 committed Dec 20, 2023
1 parent a67d60a commit 5d719e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_main.py
Original file line number Diff line number Diff line change
Expand Up @@ -1583,8 +1583,8 @@ async def test_set_limit(
repeat=True,
)
with caplog.at_level(logging.DEBUG):
await test_charger_modified_ver.set_limit("energy", 15)
assert "Limit data: {'type': 'energy', 'value': 15}" in caplog.text
await test_charger_modified_ver.set_limit("energy", 15, True)
assert "Limit data: {'type': 'energy', 'value': 15, 'release': True}" in caplog.text
assert "Setting limit config on http://openevse.test.tld/limit" in caplog.text

with pytest.raises(InvalidType):
Expand Down

0 comments on commit 5d719e8

Please sign in to comment.