As a contributor and maintainer, I want to be able to mock http GET requests so that I can run unit tests without connecting to the API.
This could be most easily accomplished by wrapping the httr::GET function. Currently, test that::with_mock is mocking the httr::GET method. It is understood that mocking functions in external packages is being deprecated. GET requests are made from a couple of functions in the package so also satisfies DRY principles.
As a contributor and maintainer, I want to be able to mock http
GET
requests so that I can run unit tests without connecting to the API.This could be most easily accomplished by wrapping the
httr::GET
function. Currently,test that::with_mock
is mocking thehttr::GET
method. It is understood that mocking functions in external packages is being deprecated. GET requests are made from a couple of functions in the package so also satisfies DRY principles.