mention conftest.py as a good place to do it.

This commit is contained in:
Harry Percival
2018-09-25 06:55:28 +01:00
committed by GitHub
parent 2b762337bd
commit 97748b6605

View File

@@ -269,7 +269,7 @@ supporting modules which are not themselves test modules will not be rewritten**
You can manually enable assertion rewriting for an imported module by calling
`register_assert_rewrite<https://docs.pytest.org/en/latest/writing_plugins.html#assertion-rewriting>`
before you import it.
before you import it (a good place to do that is in ``conftest.py``).
.. note::