for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
import pytest
import os
from glob import glob
@pytest.fixture()
def remove_generated_reports_in_root():
yield
path = os.getcwd()
pattern = os.path.join(
path, "graph-of-xccdf_org.ssgproject.content_rule_package_abrt_removed*")
for item in glob(pattern):
if not os.path.isdir(item):
os.remove(item)