diff options
Diffstat (limited to 'conftest.py')
-rw-r--r-- | conftest.py | 11 |
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) |