GispoCoding / pytest-qgis

A pytest plugin for testing QGIS python plugins
GNU General Public License v2.0
29 stars 8 forks source link

Suppress errors when deleting temp dir #42

Closed Joonalai closed 1 year ago

Joonalai commented 1 year ago

This PR resolves #41 by suppressing PermissionError when trying to delete temporary QGIS configuration directory.

codecov-commenter commented 1 year ago

Codecov Report

Patch coverage: 66.66% and project coverage change: +1.15 :tada:

Comparison is base (d81a06d) 54.66% compared to head (4a4cfec) 55.81%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #42 +/- ## ========================================== + Coverage 54.66% 55.81% +1.15% ========================================== Files 7 7 Lines 472 464 -8 ========================================== + Hits 258 259 +1 + Misses 214 205 -9 ``` | Flag | Coverage Δ | | |---|---|---| | pytest | `55.81% <66.66%> (+1.15%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=GispoCoding#carryforward-flags-in-the-pull-request-comment) to find out more. | [Impacted Files](https://app.codecov.io/gh/GispoCoding/pytest-qgis/pull/42?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=GispoCoding) | Coverage Δ | | |---|---|---| | [src/pytest\_qgis/pytest\_qgis.py](https://app.codecov.io/gh/GispoCoding/pytest-qgis/pull/42?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=GispoCoding#diff-c3JjL3B5dGVzdF9xZ2lzL3B5dGVzdF9xZ2lzLnB5) | `53.62% <66.66%> (+0.95%)` | :arrow_up: | ... and [3 files with indirect coverage changes](https://app.codecov.io/gh/GispoCoding/pytest-qgis/pull/42/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=GispoCoding)

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Do you have feedback about the report comment? Let us know in this issue.

Joonalai commented 1 year ago

Thanks for the feedback. I fixed the copyright comment and added a new issue addressing this problem #43.