Matt Clay
9f899f9492
Require from __future__ import annotations ( #81902 )
2023-10-04 22:11:17 +00:00
Matt Clay
3a9a23fb1a
Use unittest.mock instead of mock. ( #77883 )
...
This can only be done for controller tests.
2022-05-23 11:04:56 -07:00
Matt Clay
1a5853d794
Remove obsolete units.compat.mock compat layer. ( #77118 )
...
* Remove obsolete units.compat.mock compat layer.
* Update remaining units.compat.mock references.
2022-02-22 18:20:11 -08:00
Matt Clay
98a0995fd0
Clean up unit test boilerplate.
2020-06-22 14:20:33 -07:00
Matt Clay
3033fd96b0
Move unit test compat code out of lib/ansible/. ( #46996 )
...
* 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.
2018-10-12 20:01:14 -07:00
Pilou
2d7e00c670
mock_unfrackpath_noop: handle follow parameter ( #26662 )
2017-07-12 10:13:25 -05:00
Matt Clay
a5e3d13adc
Remove shebangs from unit tests.
2017-02-27 17:53:10 -08:00
jctanner
373b23cc24
Fix mock loader for osx /etc symlinks ( #16074 )
...
Fix role based unit tests for osx via mock.patch
2016-05-31 18:02:39 -04:00