Skip to content

Commit 96aeeb6

Browse files
committed
Remove double-testing
1 parent 1baaa9d commit 96aeeb6

File tree

1 file changed

+0
-85
lines changed

1 file changed

+0
-85
lines changed

tests/test_smile.py

Lines changed: 0 additions & 85 deletions
Original file line numberDiff line numberDiff line change
@@ -849,20 +849,6 @@ async def test_connect_legacy_anna_2(self):
849849
await smile.close_connection()
850850
await self.disconnect(server, client)
851851

852-
server, smile, client = await self.connect_wrapper(raise_timeout=True)
853-
await self.device_test(smile, testdata)
854-
result = await self.tinker_thermostat(
855-
smile,
856-
"be81e3f8275b4129852c4d8d550ae2eb",
857-
good_schedules=[
858-
"Thermostat schedule",
859-
],
860-
unhappy=True,
861-
)
862-
assert result
863-
await smile.close_connection()
864-
await self.disconnect(server, client)
865-
866852
@pytest.mark.asyncio
867853
async def test_connect_smile_p1_v2(self):
868854
"""Test a legacy P1 device."""
@@ -1196,19 +1182,6 @@ async def test_connect_anna_v4_dhw(self):
11961182
await smile.close_connection()
11971183
await self.disconnect(server, client)
11981184

1199-
server, smile, client = await self.connect_wrapper(raise_timeout=True)
1200-
await self.device_test(smile, testdata)
1201-
result = await self.tinker_thermostat(
1202-
smile,
1203-
"eb5309212bf5407bb143e5bfa3b18aee",
1204-
good_schedules=["Standaard", "Thuiswerken"],
1205-
schedule_on=False,
1206-
unhappy=True,
1207-
)
1208-
assert result
1209-
await smile.close_connection()
1210-
await self.disconnect(server, client)
1211-
12121185
@pytest.mark.asyncio
12131186
async def test_connect_anna_v4_no_tag(self):
12141187
"""Test an Anna firmware 4 setup - missing tag (issue)."""
@@ -1243,19 +1216,6 @@ async def test_connect_anna_v4_no_tag(self):
12431216
await smile.close_connection()
12441217
await self.disconnect(server, client)
12451218

1246-
server, smile, client = await self.connect_wrapper(raise_timeout=True)
1247-
await self.device_test(smile, testdata)
1248-
result = await self.tinker_thermostat(
1249-
smile,
1250-
"eb5309212bf5407bb143e5bfa3b18aee",
1251-
schedule_on=False,
1252-
good_schedules=["Standaard", "Thuiswerken"],
1253-
unhappy=True,
1254-
)
1255-
assert result
1256-
await smile.close_connection()
1257-
await self.disconnect(server, client)
1258-
12591219
@pytest.mark.asyncio
12601220
async def test_connect_anna_without_boiler_fw3(self):
12611221
"""Test an Anna with firmware 3, without a boiler."""
@@ -1328,18 +1288,6 @@ async def test_connect_anna_without_boiler_fw3(self):
13281288
await smile.close_connection()
13291289
await self.disconnect(server, client)
13301290

1331-
server, smile, client = await self.connect_wrapper(raise_timeout=True)
1332-
await self.device_test(smile, testdata)
1333-
result = await self.tinker_thermostat(
1334-
smile,
1335-
"c34c6864216446528e95d88985e714cc",
1336-
good_schedules=["Test", "Normal"],
1337-
unhappy=True,
1338-
)
1339-
assert result
1340-
await smile.close_connection()
1341-
await self.disconnect(server, client)
1342-
13431291
@pytest.mark.asyncio
13441292
async def test_connect_anna_without_boiler_fw4(self):
13451293
"""Test an Anna with firmware 4.0, without a boiler."""
@@ -1411,18 +1359,6 @@ async def test_connect_anna_without_boiler_fw4(self):
14111359
await smile.close_connection()
14121360
await self.disconnect(server, client)
14131361

1414-
server, smile, client = await self.connect_wrapper(raise_timeout=True)
1415-
await self.device_test(smile, testdata)
1416-
result = await self.tinker_thermostat(
1417-
smile,
1418-
"c34c6864216446528e95d88985e714cc",
1419-
good_schedules=["Test", "Normal"],
1420-
unhappy=True,
1421-
)
1422-
assert result
1423-
await smile.close_connection()
1424-
await self.disconnect(server, client)
1425-
14261362
@pytest.mark.asyncio
14271363
async def test_connect_anna_without_boiler_fw42(self):
14281364
"""Test an Anna with firmware 4.2, without a boiler."""
@@ -2783,27 +2719,6 @@ async def test_connect_adam_multiple_devices_per_zone(self):
27832719
await smile.close_connection()
27842720
await self.disconnect(server, client)
27852721

2786-
server, smile, client = await self.connect_wrapper(raise_timeout=True)
2787-
await self.device_test(smile, testdata)
2788-
result = await self.tinker_thermostat(
2789-
smile,
2790-
"c50f167537524366a5af7aa3942feb1e",
2791-
good_schedules=["GF7 Woonkamer"],
2792-
unhappy=True,
2793-
)
2794-
assert result
2795-
2796-
result = await self.tinker_thermostat(
2797-
smile,
2798-
"82fa13f017d240daa0d0ea1775420f24",
2799-
good_schedules=["CV Jessie"],
2800-
unhappy=True,
2801-
)
2802-
assert result
2803-
2804-
await smile.close_connection()
2805-
await self.disconnect(server, client)
2806-
28072722
@pytest.mark.asyncio
28082723
async def test_adam_heatpump_cooling(self):
28092724
"""Test Adam with heatpump in cooling mode and idle."""

0 commit comments

Comments
 (0)