-
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.
- Loading branch information
1 parent
1350447
commit dd6f96f
Showing
10 changed files
with
28 additions
and
172 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,22 @@ | ||
import shutil | ||
import tempfile | ||
import time | ||
|
||
TMPDIR = tempfile.mkdtemp(prefix=time.strftime( | ||
"qpformat_test_%H.%M_")) | ||
|
||
|
||
def pytest_configure(config): | ||
""" | ||
Allows plugins and conftest files to perform initial configuration. | ||
This hook is called for every plugin and initial conftest | ||
file after command line options have been parsed. | ||
""" | ||
tempfile.tempdir = TMPDIR | ||
|
||
|
||
def pytest_unconfigure(config): | ||
""" | ||
called before test process is exited. | ||
""" | ||
shutil.rmtree(TMPDIR, ignore_errors=True) |
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
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.