fdb9efce6a
patch, patch.object and create_autospec silently ignore misspelled arguments such as autospect, auto_spec and set_spec. This can lead to tests failing to check what they are supposed to check. This change adds a check causing a RuntimeError if the above functions get any of the above misspellings as arguments. It also adds a new argument, "unsafe", which can be set to True to disable this check. Also add "!r" to format specifiers in added error messages. |
||
---|---|---|
.. | ||
testmock | ||
__init__.py | ||
__main__.py | ||
_test_warnings.py | ||
dummy.py | ||
support.py | ||
test_assertions.py | ||
test_async_case.py | ||
test_break.py | ||
test_case.py | ||
test_discovery.py | ||
test_functiontestcase.py | ||
test_loader.py | ||
test_program.py | ||
test_result.py | ||
test_runner.py | ||
test_setups.py | ||
test_skipping.py | ||
test_suite.py |