Skip to content

Commit 41e7a77

Browse files
committed
change unit tests to use the stay_connected arg
1 parent 4e878ee commit 41e7a77

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_cli.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ async def test_download_ble(self):
8686
name="MyHub",
8787
start=False,
8888
wait=False,
89+
stay_connected=False,
8990
)
9091

9192
mock_hub_class = stack.enter_context(
@@ -135,6 +136,7 @@ async def test_download_usb(self):
135136
name=None,
136137
start=False,
137138
wait=False,
139+
stay_connected=False,
138140
)
139141

140142
mock_hub_class = stack.enter_context(
@@ -175,6 +177,7 @@ async def test_download_stdin(self):
175177
name="MyHub",
176178
start=False,
177179
wait=False,
180+
stay_connected=False,
178181
)
179182

180183
# Set up mocks using ExitStack
@@ -227,6 +230,7 @@ async def test_download_connection_error(self):
227230
name="MyHub",
228231
start=False,
229232
wait=False,
233+
stay_connected=False,
230234
)
231235

232236
stack.enter_context(
@@ -273,6 +277,7 @@ async def test_run_ble(self):
273277
name="MyHub",
274278
start=True,
275279
wait=True,
280+
stay_connected=False,
276281
)
277282

278283
mock_hub_class = stack.enter_context(
@@ -321,6 +326,7 @@ async def test_run_usb(self):
321326
name=None,
322327
start=True,
323328
wait=True,
329+
stay_connected=False,
324330
)
325331

326332
mock_hub_class = stack.enter_context(
@@ -360,6 +366,7 @@ async def test_run_stdin(self):
360366
name="MyHub",
361367
start=True,
362368
wait=True,
369+
stay_connected=False,
363370
)
364371

365372
# Set up mocks using ExitStack
@@ -414,6 +421,7 @@ async def test_run_connection_error(self):
414421
name="MyHub",
415422
start=False,
416423
wait=True,
424+
stay_connected=False,
417425
)
418426

419427
stack.enter_context(

0 commit comments

Comments
 (0)