remove_generated_reports_in_root()   A
last analyzed

Complexity

Conditions 3

Size

Total Lines 9
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

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