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/mock
Toshio Kuratomi c8a8f546d4 A little unittest refactoring ()
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
..
__init__.py
generator.py A little unittest refactoring () 2016-07-14 09:22:54 -07:00
loader.py
path.py
procenv.py A little unittest refactoring () 2016-07-14 09:22:54 -07:00