Test Failed
Pull Request — master (#161)
by Jan
05:02 queued 52s
created

tests.conftest.remove_generated_reports_in_root()   A

Complexity

Conditions 3

Size

Total Lines 9
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 3
eloc 9
nop 0
dl 0
loc 9
rs 9.95
c 0
b 0
f 0
1
import pytest
2
import os
3
from glob import glob
4
5
6
@pytest.fixture()
7
def remove_generated_reports_in_root():
8
    yield
9
    path = os.getcwd()
10
    pattern = os.path.join(
11
        path, "graph-of-xccdf_org.ssgproject.content_rule_package_abrt_removed*")
12
    for item in glob(pattern):
13
        if not os.path.isdir(item):
14
            os.remove(item)
15