import shutil import os TEST_DIR = "tests/output/" def cleanup(): if os.path.exists(TEST_DIR): shutil.rmtree(TEST_DIR) os.makedirs(TEST_DIR)