z-py/tests/helpers/utils.py

12 lines
217 B
Python

import shutil
import os
def pre_test(tmp_path):
owd = os.getcwd()
path = tmp_path / "z"
shutil.copytree("./example", path)
os.chdir(path / "test")
return owd
def post_test(owd):
os.chdir(owd)