Passed
Pull Request — master (#161)
by Jan
04:56
created

tests.conftest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

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

1 Function

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