You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is a common error to pass an str instead of List[str] to apps= in wait_for_idle, and as a result the test fails for timeout:
INFO juju.model:model.py:2645 Waiting for model:
p (missing)
r (missing)
o (missing)
m (missing)
e (missing)
t (missing)
h (missing)
e (missing)
u (missing)
s (missing)
It would be handy if the test fails with a more obvious message.
#741
#### Description
Currently there's no check for the `apps` argument for the `wait_for_idle()` method. So it goes through any iterable that's passed to it, including strings. As a result `wait_for_idle(apps="test")` produces something like the following:
```
INFO juju.model:model.py:2645 Waiting for model:
t (missing)
e (missing)
s (missing)
t (missing)
```
This introduces a check for the argument to be a `List[str]`.
Fixes#732
#### QA Steps
Unit tests are added, should be a simple QA.
```
tox -e py3 -- tests/unit/test_model.py::TestModelWaitForIdle
```
It is a common error to pass an str instead of List[str] to
apps=
inwait_for_idle
, and as a result the test fails for timeout:It would be handy if the test fails with a more obvious message.
python-libjuju/juju/model.py
Line 2536 in bd01785
The text was updated successfully, but these errors were encountered: