pyinat / pyinaturalist

Python client for iNaturalist
https://pyinaturalist.readthedocs.io
MIT License
130 stars 17 forks source link

Refactor controller methods #529

Closed JWCook closed 9 months ago

JWCook commented 9 months ago

In exchange for more code/doc duplication, I think this makes controller methods simpler and easier to follow. Or, rather, I think my previous attempts at code reuse may have hurt readability a bit.

This also adds several previously missing docstrings.

codecov[bot] commented 9 months ago

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (a086ac6) 96.35% compared to head (5d00c3a) 95.96%. Report is 6 commits behind head on main.

Files Patch % Lines
...yinaturalist/controllers/observation_controller.py 93.93% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #529 +/- ## ========================================== - Coverage 96.35% 95.96% -0.39% ========================================== Files 58 58 Lines 3294 3298 +4 Branches 643 635 -8 ========================================== - Hits 3174 3165 -9 - Misses 88 95 +7 - Partials 32 38 +6 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.