-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 ```
- Loading branch information
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters