-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
migrate fixture into a separate module (#11)
* move fixture to fixtures module * segregate tests and add `board.SPI1()` * make base ops private * rm dev artifact from #7 * improve docs
- Loading branch information
Showing
19 changed files
with
524 additions
and
305 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 |
---|---|---|
@@ -1,16 +0,0 @@ | ||
from pathlib import Path | ||
import pytest | ||
|
||
|
||
@pytest.fixture(autouse=True) | ||
def monkey_patch_sys_paths(monkeypatch: pytest.MonkeyPatch): | ||
"""A pytest fixture that monkey patches the Python runtime's import paths, such | ||
that this package's mock modules can be imported first (instead from the | ||
adafruit-blinka package). | ||
.. important:: | ||
This fixture is automatically used once imported into the test module. | ||
""" | ||
root_pkg = Path(__file__).parent | ||
monkeypatch.syspath_prepend(str(root_pkg)) | ||
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
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
Oops, something went wrong.