From ec8d2e9580380a4ac82f3c195dc7a463b92160b3 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 8 May 2019 13:48:32 -0400 Subject: Initial commit of conftest.py --- conftest.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 conftest.py 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) -- cgit