ropensci / osmapiR

An R interface to OpenStreetMap API for fetching and saving data from/to the OpenStreetMap database
https://docs.ropensci.org/osmapiR/
GNU General Public License v3.0
7 stars 3 forks source link

Fix tests for authenticated calls #5

Closed jmaspons closed 1 year ago

jmaspons commented 1 year ago

Don't add httr2::req_oauth_auth_code on R-CMD-check

Avoid errors when testing calls using httptest2. The mock responses have to be generated manually on an authenticated session

codecov[bot] commented 1 year ago

Codecov Report

Patch coverage: 100.00% and project coverage change: +8.64 :tada:

Comparison is base (5c8cea1) 57.44% compared to head (42ac005) 66.08%.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #5 +/- ## ========================================== + Coverage 57.44% 66.08% +8.64% ========================================== Files 12 12 Lines 625 625 ========================================== + Hits 359 413 +54 + Misses 266 212 -54 ``` | [Impacted Files](https://app.codecov.io/gh/jmaspons/osmapiR/pull/5?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Joan+Maspons) | Coverage Δ | | |---|---|---| | [R/osmapi\_request.R](https://app.codecov.io/gh/jmaspons/osmapiR/pull/5?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Joan+Maspons#diff-Ui9vc21hcGlfcmVxdWVzdC5S) | `85.71% <100.00%> (ø)` | | ... and [4 files with indirect coverage changes](https://app.codecov.io/gh/jmaspons/osmapiR/pull/5/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Joan+Maspons)

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