Files
2021-01-11 15:36:03 +01:00

34 lines
728 B
Python

import os
from os import path
import shutil
collect_ignore = [
"setup.py"
]
collect_ignore_glob = [
# "tests/cache/",
# "tests/core/",
# "tests/evaluators/",
# "tests/non_reg/",
# "tests/out/",
# "tests/parsers/",
# "tests/repl/",
# "tests/sdp/",
# "tests/sheerkapickle/",
]
TESTS_ROOT_FOLDER = path.abspath("../../build/tests")
SHEERKA_TEST_FOLDER = path.join(TESTS_ROOT_FOLDER, "init_folder")
def pytest_sessionstart(session):
"""
Called after the Session object has been created and
before performing collection and entering the run test loop.
"""
if path.exists(TESTS_ROOT_FOLDER):
shutil.rmtree(TESTS_ROOT_FOLDER)
os.makedirs(TESTS_ROOT_FOLDER)