1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00
community.general/test/units
Toshio Kuratomi c8a8f546d4 A little unittest refactoring (#16704)
A little unittest refactoring

* Add a class decorator to generate tests when using a unittest.TestCase base class
* Add a TestCase subclass with setUp() and tearDown() that sets up
  module parameter parsing
* Move test_safe_eval to use the class decorator and ModuleTestCase base
  class
* Move testing of set_mode_if_different into its own file and separate
  some test methods out so we get better errors and more coverage in
  case of errors.
* Naming convention for test cases doesn't need to duplicate information
  that's already in the file path.
2016-07-14 09:22:54 -07:00
..
cli Fixing bug in GalaxyCLI test; creates temp dir for role_path instead … (#16689) 2016-07-12 16:01:47 -04:00
contrib Add a new vmware inventory script backed by pyvmomi (#15967) 2016-05-30 20:41:48 -04:00
errors Relocate use of ERROR to display class, to avoid doubling up 2016-01-19 12:10:39 -05:00
executor Parse async response in async action. (#16534) 2016-07-01 14:52:45 -07:00
inventory Changing up how host (in)equality is checked 2015-12-04 12:57:46 -05:00
inventory_test_data/group_vars Merge branch 'v2_final' into devel_switch_v2 2015-05-28 15:26:03 -05:00
mock A little unittest refactoring (#16704) 2016-07-14 09:22:54 -07:00
module_utils A little unittest refactoring (#16704) 2016-07-14 09:22:54 -07:00
modules docker was deprecated, test now reflects new name 2016-05-26 09:12:23 -04:00
parsing New unit tests for #13630 fix 2016-03-28 15:54:07 -04:00
playbook Fix mock loader for osx /etc symlinks (#16074) 2016-05-31 18:02:39 -04:00
plugins Fixing type in 293723f (mock_handler -> mock_handler_task) 2016-07-12 17:00:29 -05:00
template Cleaning up FIXMEs 2015-10-22 16:03:50 -04:00
utils Python 3: shlex.split() wants unicode 2015-09-24 12:36:05 +03:00
vars Adding unit tests for playbook group/host vars 2016-06-06 10:52:39 -05:00
__init__.py Making the switch to v2 2015-05-03 21:47:26 -05:00