aboutsummaryrefslogtreecommitdiff
path: root/conftest.py
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2019-05-08 13:48:32 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2019-05-08 13:48:32 -0400
commitec8d2e9580380a4ac82f3c195dc7a463b92160b3 (patch)
tree750ed2ef2b3d0b5084b7bfb7e14ccdbc19f6a275 /conftest.py
parentf6e8e579818c3e6b9708e4d236bcabc6fa2ee397 (diff)
downloaddelivery_merge-ec8d2e9580380a4ac82f3c195dc7a463b92160b3.tar.gz
Initial commit of conftest.py
Diffstat (limited to 'conftest.py')
-rw-r--r--conftest.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/conftest.py b/conftest.py
new file mode 100644
index 0000000..a263f47
--- /dev/null
+++ b/conftest.py
@@ -0,0 +1,11 @@
+import os
+import pytest
+
+
+@pytest.fixture(scope="session", autouse=True)
+def _jail(tmp_path_factory):
+ cwd = os.path.abspath('.')
+ tmp = tmp_path_factory.mktemp("condatest")
+ os.chdir(tmp)
+ yield
+ os.chdir(cwd)