Files
edx-platform/pavelib/paver_tests/conftest.py
Jawayria 96e1bffc97 Refactor: Removed unused imports
Removed unused imports from docs, scripts, pavelib
2021-04-09 16:03:53 +05:00

23 lines
434 B
Python

"""
Pytest fixtures for the pavelib unit tests.
"""
import os
from shutil import rmtree
import pytest
from pavelib.utils.envs import Env
@pytest.fixture(autouse=True, scope='session')
def delete_quality_junit_xml():
"""
Delete the JUnit XML results files for quality check tasks run during the
unit tests.
"""
yield
if os.path.exists(Env.QUALITY_DIR):
rmtree(Env.QUALITY_DIR, ignore_errors=True)