python-escpos / python-escpos

Python library to manipulate ESC/POS printers
https://python-escpos.readthedocs.io
MIT License
978 stars 280 forks source link

Improve test coverage and fix issue in path loading #602

Closed patkan closed 7 months ago

patkan commented 7 months ago

Description

Fix issue in config loader that prevented path paths to be loaded.

Tested with

If applicable, please describe with which device you have tested.

codecov[bot] commented 7 months ago

Codecov Report

Merging #602 (303e4f7) into master (5914c7c) will increase coverage by 2.72%. The diff coverage is 100.00%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #602 +/- ## ========================================== + Coverage 78.25% 80.98% +2.72% ========================================== Files 21 21 Lines 1619 1620 +1 Branches 287 288 +1 ========================================== + Hits 1267 1312 +45 + Misses 276 226 -50 - Partials 76 82 +6 ``` | [Flag](https://app.codecov.io/gh/python-escpos/python-escpos/pull/602/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-escpos) | Coverage Δ | | |---|---|---| | [unittests](https://app.codecov.io/gh/python-escpos/python-escpos/pull/602/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-escpos) | `80.80% <100.00%> (+2.72%)` | :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=python-escpos#carryforward-flags-in-the-pull-request-comment) to find out more. | [Files](https://app.codecov.io/gh/python-escpos/python-escpos/pull/602?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-escpos) | Coverage Δ | | |---|---|---| | [src/escpos/codepages.py](https://app.codecov.io/gh/python-escpos/python-escpos/pull/602?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-escpos#diff-c3JjL2VzY3Bvcy9jb2RlcGFnZXMucHk=) | `100.00% <ø> (+8.33%)` | :arrow_up: | | [src/escpos/config.py](https://app.codecov.io/gh/python-escpos/python-escpos/pull/602?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-escpos#diff-c3JjL2VzY3Bvcy9jb25maWcucHk=) | `82.97% <100.00%> (+57.97%)` | :arrow_up: | ... and [3 files with indirect coverage changes](https://app.codecov.io/gh/python-escpos/python-escpos/pull/602/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=python-escpos)