mention conftest.py as a good place to do it.
This commit is contained in:
parent
2b762337bd
commit
97748b6605
|
@ -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
|
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>`
|
`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::
|
.. note::
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue