File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111from juju .model import Model
1212from juju .application import Application
1313from juju import jasyncio
14- from juju .errors import JujuConnectionError
14+ from juju .errors import JujuConnectionError , JujuError
1515
1616
1717def _make_delta (entity , type_ , data = None ):
@@ -289,6 +289,21 @@ async def test_no_args(self):
289289 # no apps so should return right away
290290 await m .wait_for_idle (wait_for_active = True )
291291
292+ @pytest .mark .asyncio
293+ async def test_apps_no_lst (self ):
294+ m = Model ()
295+ with self .assertRaises (JujuError ):
296+ # apps arg has to be a List[str]
297+ await m .wait_for_idle (apps = "should-be-list" )
298+
299+ with self .assertRaises (JujuError ):
300+ # apps arg has to be a List[str]
301+ await m .wait_for_idle (apps = 3 )
302+
303+ with self .assertRaises (JujuError ):
304+ # apps arg has to be a List[str]
305+ await m .wait_for_idle (apps = [3 ])
306+
292307 @pytest .mark .asyncio
293308 async def test_timeout (self ):
294309 m = Model ()
You can’t perform that action at this time.
0 commit comments