aboutsummaryrefslogtreecommitdiff
path: root/conftest.py
blob: a263f47299698ea8b9fc7b5c9498f35de30ce71c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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)