1 | import os |
||
2 | import webbrowser |
||
3 | |||
4 | |||
5 | def pytest_unconfigure(config): |
||
6 | htmlcov_path = os.path.join("htmlcov", "index.html") |
||
7 | if (hasattr(config.option, "cov_report") and |
||
8 | 'html' in config.option.cov_report and |
||
9 | os.path.isfile(htmlcov_path)): |
||
10 | try: |
||
11 | webbrowser.open_new_tab(htmlcov_path) |
||
12 | except webbrowser.Error: |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
![]() |
|||
13 | pass |
||
14 |