-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #67 from uace-azmet/remove-httptest2
remove httptest2 API mocking infrastructure
- Loading branch information
Showing
32 changed files
with
290 additions
and
11,625 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -29,7 +29,6 @@ Suggests: | |
covr, | ||
ggplot2, | ||
glue, | ||
httptest2, | ||
knitr, | ||
rmarkdown, | ||
testthat (>= 3.0.0), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
#shortens file paths created by httptest2 so that R CMD check doesn't complain | ||
httptest2::set_redactor( | ||
function (resp) { | ||
resp %>% | ||
httptest2::gsub_response("api.azmet.arizona.edu/v1/observations/", "") %>% | ||
httptest2::gsub_response("\\*", "default") #asterix is not valid dir name on all OS | ||
} | ||
) | ||
## httptest2 isn't currently used, but if it is used for API mocking in the future, this will be helpful | ||
|
||
##shortens file paths created by httptest2 so that R CMD check doesn't complain | ||
# httptest2::set_redactor( | ||
# function (resp) { | ||
# resp %>% | ||
# httptest2::gsub_response("api.azmet.arizona.edu/v1/observations/", "") %>% | ||
# httptest2::gsub_response("\\*", "default") #asterix is not valid dir name on all OS | ||
# } | ||
# ) |
244 changes: 0 additions & 244 deletions
244
tests/testthat/add_units_mocks/daily/az01/2023-11-27T00-00/P2D.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.