Commit 4d18b7d
authored
Merge pull request #741 from cderici/wait_for_idle_arg_type_check
#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
```2 files changed
Lines changed: 22 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2581 | 2581 | | |
2582 | 2582 | | |
2583 | 2583 | | |
| 2584 | + | |
| 2585 | + | |
| 2586 | + | |
| 2587 | + | |
| 2588 | + | |
| 2589 | + | |
2584 | 2590 | | |
2585 | 2591 | | |
2586 | 2592 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
292 | 307 | | |
293 | 308 | | |
294 | 309 | | |
| |||
0 commit comments