doc: `import pytest` in `conftest.py` example in `doctest.rst`

This commit is contained in:
Manuel López-Ibáñez 2024-04-03 10:59:33 +01:00 committed by GitHub
parent b63bea9523
commit 9a4fd2e8f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -224,9 +224,9 @@ place the objects you want to appear in the doctest namespace:
.. code-block:: python
# content of conftest.py
import pytest
import numpy
@pytest.fixture(autouse=True)
def add_np(doctest_namespace):
doctest_namespace["np"] = numpy