fastkml
fastkml copied to clipboard
Tests: remove old_unittest.py
Remove old_unittest.py, refactor and move the tests (if valuable) into the appropriate location.
Most of the old unit tests can be split into several tests to test one thing only
Check that the test to be moved covers something that is not currently tested.
run pytest --cov=fastkml --cov-report=term remove one test and if the coverage stays the same, the test can be removed.
---------- coverage: platform linux, python 3.12.6-final-0 -----------
Name Stmts Miss Branch BrPart Cover
---------------------------------------------------------
fastkml/__init__.py 28 0 0 0 100%
fastkml/about.py 2 0 0 0 100%
fastkml/atom.py 66 0 2 0 100%
fastkml/base.py 76 0 22 0 100%
fastkml/config.py 24 0 2 0 100%
fastkml/containers.py 61 2 4 2 94%
fastkml/data.py 111 4 2 0 96%
fastkml/enums.py 82 0 32 0 100%
fastkml/exceptions.py 6 0 0 0 100%
fastkml/features.py 142 3 6 0 98%
fastkml/geometry.py 271 11 82 10 94%
fastkml/gx.py 140 3 50 1 98%
fastkml/helpers.py 185 4 70 7 96%
fastkml/kml.py 70 2 14 1 96%
fastkml/kml_base.py 23 0 0 0 100%
fastkml/links.py 47 0 0 0 100%
fastkml/mixins.py 19 0 6 0 100%
fastkml/overlays.py 159 8 0 0 95%
fastkml/registry.py 46 0 8 2 96%
fastkml/styles.py 197 4 12 2 97%
fastkml/times.py 104 3 36 6 94%
fastkml/types.py 14 0 0 0 100%
fastkml/views.py 126 6 0 0 95%
---------------------------------------------------------
TOTAL 1999 50 348 31 97%
don't just look at the percentage (that may not be accurate enough), but on the Miss and BrPart columns