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