ansible/test/units/playbook
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.
2019-01-03 18:12:23 -08:00
..
role Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
__init__.py
test_attribute.py Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
test_base.py Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
test_become.py Unit tests for ansible.playbook.become (#38541) 2018-08-23 13:47:20 -05:00
test_block.py Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
test_conditional.py conditional: fix direct boolean "shortcut" (#47941) 2018-11-07 21:33:54 +01:00
test_helpers.py Consolidate handler tracking (#49338) 2018-12-11 10:58:19 -05:00
test_included_file.py Give IncludedFile more context via ansible_search_path (#50045) 2019-01-03 16:13:02 -05:00
test_play.py Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
test_play_context.py Split up the base_parser function 2019-01-03 18:12:23 -08:00
test_playbook.py Move unit test compat code out of lib/ansible/. (#46996) 2018-10-12 20:01:14 -07:00
test_taggable.py Allow tags to be templated from a variable (#49833) 2018-12-17 15:40:26 -06:00
test_task.py Add better error when k=v syntax is used with YAML in tasks (#41754) 2018-12-04 12:32:02 -05:00