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/module_utils
Toshio Kuratomi cd36164239
Porting tests to pytest (#33387)
* Porting tests to pytest

* Achievement Get: No longer need mock/generator.py
  * Now done via pytest's parametrization
  * Port safe_eval to pytest
  * Port text tests to pytest
  * Port test_set_mode_if_different to pytest

* Change conftest AnsibleModule fixtures to be more flexible
  * Move the AnsibleModules fixtures to module_utils/conftest.py for sharing
  * Testing the argspec code requires:
    * injecting both the argspec and the arguments.
    * Patching the arguments into sys.stdin at a different level

* More porting to obsolete mock/procenv.py
  * Port run_command to pytest
  * Port known_hosts tests to pytest
  * Port safe_eval to pytest
  * Port test_distribution_version.py to pytest
  * Port test_log to pytest
  * Port test__log_invocation to pytest
  * Remove unneeded import of procenv in test_postgresql

* Port test_pip to pytest style
  * As part of this, create a pytest ansiblemodule fixture in
    modules/conftest.py.  This is slightly different than the
    approach taken in module_utils because here we need to override the
    AnsibleModule that the modules will inherit from instead of one that
    we're instantiating ourselves.

* Fixup usage of parametrization in test_deprecate_warn

* Check that the pip module failed in our test
7 years ago
..
aws aws.core in new aws dir in module utils - module with AnsibleAWSModule class and fail_json_aws (#25780) 7 years ago
basic Porting tests to pytest (#33387) 7 years ago
cloud [cloud] Add more configurable backoff implementations to CloudRetry/AWSRetry (#27251) 7 years ago
ec2 AWSRetry: allow retrying on additional ClientError exceptions (#28483) 7 years ago
facts Fix invalid string escape sequences. 7 years ago
gcp Fix dangerous default args. (#29839) 7 years ago
json_utils Port some tests away from nose as examples (#33437) 7 years ago
network Refactor common network shared and platform utils code into package (#33452) 7 years ago
parsing Consolidate boolean/mk_boolean conversion functions into a single location 7 years ago
__init__.py Add empty-init code-smell script. (#18406) 8 years ago
conftest.py Porting tests to pytest (#33387) 7 years ago
test_basic.py jsonify inventory (#32990) 7 years ago
test_database.py Revert "Update galaxy and database unit tests." 8 years ago
test_distribution_version.py Porting tests to pytest (#33387) 7 years ago
test_known_hosts.py Porting tests to pytest (#33387) 7 years ago
test_postgresql.py Porting tests to pytest (#33387) 7 years ago
test_text.py Porting tests to pytest (#33387) 7 years ago