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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

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::