-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #251 from JonathonReinhart/test-cleanup
Cleanup and refactor tests
- Loading branch information
Showing
7 changed files
with
1,206 additions
and
1,368 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
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,8 +1,9 @@ | ||
from pathlib import Path | ||
import pytest | ||
|
||
|
||
@pytest.fixture | ||
def in_tmp_path(tmp_path, monkeypatch): | ||
def in_tmp_path(tmp_path: Path, monkeypatch: pytest.MonkeyPatch) -> Path: | ||
"""Runs a test in a temporary directory provided by the tmp_path fixture""" | ||
monkeypatch.chdir(tmp_path) | ||
return tmp_path |
Oops, something went wrong.