ansible/test/units
s-hertel 65815c3875 Refactoring Galaxy unit tests for uniformity (#20828)
* Making tests more uniform

Removing unnecessary GalaxyCLI arguments/patching of the command line since parsing of the CLI args has been modified.

Run GalaxyCLI.parse() without saving the returned value to be uniform with the rest of the code.

Fix test_execute_remove to use the correct path

Use GalaxyCLI.run() instead of super(GalaxyCLI, gc).run() and GalaxyCLI.api = ansible.galaxy.api.GalaxyAPI(gc.galaxy).

* Refactor so one unit test checks one thing instead of multiple.

Improve readability by using a dict instead of lots of elifs

* Removing import used for debugging

* Fixing PEP 8 issues.

* Fix PEP 8 issues
2017-02-08 16:35:06 -05:00
..
cli Refactoring Galaxy unit tests for uniformity (#20828) 2017-02-08 16:35:06 -05:00
contrib PEP 8 W291 whitespace cleanup. 2017-01-27 17:08:02 -08:00
errors Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00
executor Combine jimi-c and bcoca's ideas and work on hooking module-utils into PluginLoader. 2017-01-31 09:41:24 -08:00
inventory Add lots of test cases to inventory/test_host.py (#17827) 2016-11-29 13:38:04 -05:00
inventory_test_data/group_vars
mock Fix @contextmanager leak on exception. (#21031) 2017-02-03 17:19:59 -08:00
module_utils Convert unit test yield to pytest parametrize. 2017-02-08 12:56:23 -08:00
modules Fix 'yum skips updates' bug (#21113) 2017-02-08 16:07:43 -05:00
parsing added docs for vault and made trigger shorter: !vault (#20985) 2017-02-03 15:28:50 -05:00
playbook PEP 8 indent cleanup. (#20800) 2017-01-29 07:28:53 +00:00
plugins Fix action test (#21102) 2017-02-07 13:35:51 -05:00
template Don't check for var._obj in template._clean_data (#20868) 2017-02-08 16:09:34 -05:00
utils PEP 8 indent cleanup. (#20800) 2017-01-29 07:28:53 +00:00
vars PEP 8 indent cleanup. (#20800) 2017-01-29 07:28:53 +00:00
__init__.py Add empty-init code-smell script. (#18406) 2016-11-07 15:02:13 -08:00