mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
Mock objects which are not unsafe will now raise an AttributeError when accessing an attribute that matches the name of an assertion but without the prefix `assert_`, e.g. accessing `called_once` instead of `assert_called_once`. This is in addition to this already happening for accessing attributes with prefixes assert, assret, asert, aseert, and assrt. |
||
|---|---|---|
| .. | ||
| 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 | ||