Skip to content

Commit 2f3f703

Browse files
committed
Improve test coverage
1 parent 9935f6a commit 2f3f703

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

tests/test_adam.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,11 @@ async def test_connect_adam_plus_anna_new(self):
325325
)
326326
assert not switch_change
327327

328-
await self.tinker_gateway_mode(smile)
329-
await self.tinker_regulation_mode(smile)
328+
tinkered = await self.tinker_gateway_mode(smile)
329+
assert not tinkered
330+
331+
tinkered = await self.tinker_regulation_mode(smile)
332+
assert not tinkered
330333

331334
tinkered = await self.tinker_max_boiler_temp(smile)
332335
assert not tinkered
@@ -366,6 +369,12 @@ async def test_connect_adam_plus_anna_new(self):
366369
tinkered = await self.tinker_max_boiler_temp(smile, unhappy=True)
367370
assert tinkered
368371

372+
tinkered = await self.tinker_gateway_mode(smile, unhappy=True)
373+
assert tinkered
374+
375+
tinkered = await self.tinker_regulation_mode(smile, unhappy=True)
376+
assert tinkered
377+
369378
await smile.close_connection()
370379
await self.disconnect(server, client)
371380

tests/test_anna.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,12 @@ async def test_connect_anna_v4(self):
7979
unhappy=True,
8080
)
8181
assert result
82+
83+
result = await self.tinker_temp_offset(
84+
smile, "01b85360fdd243d0aaad4d6ac2a5ba7e", unhappy=True,
85+
)
86+
assert result
87+
8288
await smile.close_connection()
8389
await self.disconnect(server, client)
8490

0 commit comments

Comments
 (0)