diff options
author | Matt Clay <mclay@redhat.com> | 2020-02-04 20:21:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-04 20:21:53 +0100 |
commit | f4a80bb600510669801c5d5c0a250952748e99fd (patch) | |
tree | 83ce363b557a66453a9f2c9d0b84c589e09fc57a /test/lib/ansible_test/_internal/cli.py | |
parent | fixes ANSIBLE_DUPLICATE_YAML_DICT_KEY=error crashes (#66786) (diff) | |
download | ansible-f4a80bb600510669801c5d5c0a250952748e99fd.tar.xz ansible-f4a80bb600510669801c5d5c0a250952748e99fd.zip |
Code cleanup and refactoring in ansible-test. (#67063)
* Code cleanup in ansible-test.
* Split out encoding functions.
* Consoldate loading of JSON files.
* Split out disk IO functions.
* Simplify file access.
* Add functions for opening files.
* Replace open calls with appropriate functions.
* Expose more types from typing module.
* Support writing compact JSON.
* Add verbosity argument to display.warning.
* Add changelog entry.
* Update files overlooked during rebase.
* Use `io.open` instead of `open`.
* Fix file opening for imp.load_module.
* Remove use of `r+` mode to access files.
* Add missing import.
* Fix httptester on Python 2.x.
* Clarify changelog fragment.
* Consolidate imports. Remove extra newlines.
* Fix indirect imports.
Diffstat (limited to 'test/lib/ansible_test/_internal/cli.py')
-rw-r--r-- | test/lib/ansible_test/_internal/cli.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/lib/ansible_test/_internal/cli.py b/test/lib/ansible_test/_internal/cli.py index 8bf5de2741..acf8d72272 100644 --- a/test/lib/ansible_test/_internal/cli.py +++ b/test/lib/ansible_test/_internal/cli.py @@ -822,6 +822,7 @@ def complete_target(prefix, parsed_args, **_): return find_target_completion(parsed_args.targets, prefix) +# noinspection PyUnusedLocal def complete_remote(prefix, parsed_args, **_): """ :type prefix: unicode @@ -835,6 +836,7 @@ def complete_remote(prefix, parsed_args, **_): return [i for i in images if i.startswith(prefix)] +# noinspection PyUnusedLocal def complete_remote_shell(prefix, parsed_args, **_): """ :type prefix: unicode @@ -852,6 +854,7 @@ def complete_remote_shell(prefix, parsed_args, **_): return [i for i in images if i.startswith(prefix)] +# noinspection PyUnusedLocal def complete_docker(prefix, parsed_args, **_): """ :type prefix: unicode @@ -911,6 +914,7 @@ def complete_network_testcase(prefix, parsed_args, **_): return testcases +# noinspection PyUnusedLocal def complete_sanity_test(prefix, parsed_args, **_): """ :type prefix: unicode |