Matt Clay
8cd66ce95a
[stable-2.10] Clean up unit test boilerplate.
...
(cherry picked from commit 98a0995fd0
)
Co-authored-by: Matt Clay <matt@mystile.com>
2020-07-13 18:28:02 -07:00
Mads Jensen
0f491c0289
Replace TestCase.assertEquals with TestCase.assertEqual.
2019-11-11 10:24:21 -08:00
Andrey Klychkov
4e8df9a4b8
unit tests: remove unused imports ( #59636 )
2019-07-26 10:53:31 -04: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
Toshio Kuratomi
e499bccbaa
Port some tests away from nose as examples ( #33437 )
...
We don't need to use both nose and pytest. Once we get rid of all uses
of nose we can remove the extra dependency
2017-11-30 14:04:09 -08:00
Matt Clay
7714dcd04e
Enable more pylint rules and fix reported issues. ( #30539 )
...
* Enable pylint unreachable test.
* Enable pylint suppressed-message test.
* Enable pylint redundant-unittest-assert test.
* Enable pylint bad-open-mode test.
* Enable pylint signature-differs test.
* Enable pylint unnecessary-pass test.
* Enable pylint unnecessary-lambda test.
* Enable pylint raising-bad-type test.
* Enable pylint logging-not-lazy test.
* Enable pylint logging-format-interpolation test.
* Enable pylint useless-else-on-loop test.
2017-09-18 23:20:32 -07:00
Dag Wieers
4efec414e7
test/: PEP8 compliancy ( #24803 )
...
* test/: PEP8 compliancy
- Make PEP8 compliant
* Python3 chokes on casting int to bytes (#24952 )
But if we tell the formatter that the var is a number, it works
2017-05-30 18:05:19 +01:00
Matt Clay
10d9318de7
PEP 8 indent cleanup. ( #20800 )
...
* PEP 8 E121 cleanup.
* PEP 8 E126 cleanup.
* PEP 8 E122 cleanup.
2017-01-29 07:28:53 +00:00
Matt Davis
aa0ad073b8
bugfixes to JSON junk filter, added unit/integration tests to exercise ( #17834 )
2016-10-02 08:03:42 -07:00