| Total Complexity | 3 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 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 |