-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add standard packages to shorten docstring example
- Loading branch information
1 parent
8ae0d2f
commit 02c4e4c
Showing
3 changed files
with
19 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# content of conftest.py | ||
import pytest | ||
import numpy | ||
import pandas | ||
import mikeio | ||
|
||
|
||
@pytest.fixture(autouse=True) | ||
def add_np(doctest_namespace): | ||
doctest_namespace["np"] = numpy | ||
|
||
@pytest.fixture(autouse=True) | ||
def add_pd(doctest_namespace): | ||
doctest_namespace["pd"] = pandas | ||
|
||
|
||
@pytest.fixture(autouse=True) | ||
def add_mikeio(doctest_namespace): | ||
doctest_namespace["mikeio"] = mikeio |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters