Breaking changes with httr2 1.0.0 release moving from `with_mock()` -> `with_mocked_responses()`
Closed this issue · 3 comments
al-obrien commented
With the recent release of httr2 1.0.0, tests are now throwing errors related to the with_mock_dir()
function which I believe relies on the now deprecated with_mock()
approach.
As an example, this is the specific warning thrown when using the older function:
Warning (...): (code run outside of `test_that()`)
`with_mock()` was deprecated in httr2 1.0.0.
ℹ Please use `with_mocked_responses()` instead.
ℹ The deprecated feature was likely used in the httptest2 package.
Please report the issue at <https://github.com/nealrichardson/httptest2/issues>.
nealrichardson commented
httptest2 was released last week and included adaptations for httr2 (#31). Are you using the latest release of httptest2?
al-obrien commented
Thanks for pointing out that you already pushed to CRAN in anticipation of the deprecation, that resolved the issue; my fault for not searching more completely!
al-obrien commented
Closing