nealrichardson / httptest2

Utilities for testing R 📦s that use httr2
https://enpiar.com/httptest2/
Other
26 stars 6 forks source link

Adapt httr::response to httr2::httr2_response #1

Closed nealrichardson closed 2 years ago

nealrichardson commented 2 years ago

Mocks saved as .R files by httptest are of class "response" from httr. When these are loaded, they need to be adapted to the shape of "httr2_response".

Many tests are currently skipped because of this: they rely on mocks written by httptest. Look for "HTTR2: adapt httr::response to httr2::httr2_response" in comments/skips throughout the code. Once these tests are unskipped, there may be more issues uncovered.