You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ansible/test/units
Toshio Kuratomi 7e92ff823e Split up the base_parser function
The goal of breaking apart the base_parser() function is to get rid of
a bunch of conditionals and parameters in the code and, instead, make
code look like simple composition.

When splitting, a choice had to be made as to whether this would operate
by side effect (modifying a passed in parser) or side effect-free
(returning a new parser everytime).

Making a version that's side-effect-free appears to be fighting with the
optparse API (it wants to work by creating a parser object, configuring
the object, and then parsing the arguments with it) so instead, make it
clear that our helper functions are modifying the passed in parser by
(1) not returning the parser and (2) changing the function names to be
more clear that it is operating by side-effect.

Also move all of the generic optparse code, along with the argument
context classes, into a new subdirectory.
7 years ago
..
arguments Split up the base_parser function 7 years ago
cli Split up the base_parser function 7 years ago
compat Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago
config Review comments 7 years ago
contrib Fix vmware_inventory unit tests so they run. 7 years ago
errors Add better error when k=v syntax is used with YAML in tasks (#41754) 7 years ago
executor Split up the base_parser function 7 years ago
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 11 years ago
mock Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago
module_utils Add a CLIArgs Singleton class that will hold the parse cli arguments 7 years ago
modules added new module to manipulate signatre sets on ASM policy (#50209) 7 years ago
parsing Update bare exceptions to specify Exception. 7 years ago
playbook Split up the base_parser function 7 years ago
plugins Save the command line arguments into a global context 7 years ago
template templar: ensure that exceptions are handled, fix 'AttributeError' (#48792) 7 years ago
utils Add unit tests for unsafe_proxy (#47887) 7 years ago
vars Move unit test compat code out of `lib/ansible/`. (#46996) 7 years ago
__init__.py Add empty-init code-smell script. (#18406) 9 years ago
ansible.cfg Fix ansible-test config management. 8 years ago
conftest.py Run unit tests in parallel. (#45812) 7 years ago
test_constants.py 1st part of ansible config, adds ansible-config to view/manage configs (#12797) 9 years ago
test_context.py Save the command line arguments into a global context 7 years ago