Passed
Push — master ( b5a080...903f35 )
by Jan
06:45 queued 01:03
created

tests_oval_graph.conftest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 3
eloc 13
dl 0
loc 16
rs 10
c 0
b 0
f 0

1 Function

Rating   Name   Duplication   Size   Complexity  
A remove_generated_reports_in_root() 0 9 3
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