Commit Graph

12 Commits (c93af4e148a0f04aef36d78e852ede057a02e701)

Author SHA1 Message Date
Matt Clay 18e8401edd
Remove Python 2.x compat from unit tests ()
Matt Clay 9f899f9492
Require `from __future__ import annotations` ()
Matt Martz 74f5367673
Ensure `heuristic_log_sanitize` returns correct data if no password found ()
* Ensure heuristic_log_sanitize returns correct data if no password found. See 

* Need to allow code to flow through
Matt Clay 98a0995fd0 Clean up unit test boilerplate.
Mads Jensen 0f491c0289 Replace TestCase.assertEquals with TestCase.assertEqual.
Matt Clay 3033fd96b0
Move unit test compat code out of `lib/ansible/`. ()
* Move ansible.compat.tests to test/units/compat/.
* Fix unit test references to ansible.compat.tests.
* Move builtins compat to separate file.
* Fix classification of test/units/compat/ dir.
Toshio Kuratomi 370a7ace4b
Split basic units ()
Split the one monolithic test for basic.py into several files

* Split test_basic.py along categories.
  This is preliminary to get a handle on things.  Eventually we may want
  to further split it so each file is only testing a single function.
* Cleanup unused imports from splitting test_basic.py
* Port atomic_move test to pytest.
  Working on getting rid of need to maintain procenv
* Split a test of symbolic_mode_to_octal to follow unittest best practices
  Each test should only invoke the function under test once
* Port test_argument_spec to pytest.
* Fix suboptions failure
Dag Wieers 4efec414e7 test/: PEP8 compliancy ()
* test/: PEP8 compliancy

- Make PEP8 compliant

* Python3 chokes on casting int to bytes ()

But if we tell the formatter that the var is a number, it works
Toshio Kuratomi d29a7c55fe Enable some basic.py tests on python3 ()
Toshio Kuratomi cfeef81303 For now, skip tests of module_utils/basic functions that are failing on
py3 (these are only run on the target hosts, not on the controller).
Toshio Kuratomi 6e5055e786 Update the use of no_log values to cover everything that heuristic_log_sanitize does.
Fixes 
Toshio Kuratomi c2d188baff Hide values in json returns which were given in parameters marked no_log.