Skip to content

Commit 739ece8

Browse files
authored
Merge pull request #129 from usa-npn/vcr2
vcr 2.0
2 parents 090e6d5 + b878c85 commit 739ece8

89 files changed

Lines changed: 32363 additions & 57266 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎CONTRIBUTING.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ See the tidyverse guide on [how to create a great issue](https://code-review.tid
3434

3535
- Unit tests are written using [`testthat`](https://cran.r-project.org/package=testthat) and can be found in `tests/testthat/`.
3636

37-
- Many of the tests use `vcr` for webmocking.
38-
The first time code wrapped in `vcr::use_casette({})` is run successfully, a "fixture" is created in `tests/fixtures/`.
39-
Subsequent runs of that code will *not* query the API but rather retrieve a cached response from `tets/fixtures/`.
37+
- Many of the tests use `vcr` for webmocking with `vcr::local_casette()`.
38+
The first time a mocked test is run successfully, the API response is recorded in `tests/testthat/_vcr/`.
39+
Subsequent runs of that test will *not* query the API but rather retrieve a cached response from `tets/testthat/_vcr/`.
4040
If the API changes or you are finding inconsistencies between tests and interactively running your code, you may want to regenerate these fixtures.
4141
You can do this by simply deleting the relevant .yml files and re-running the tests (e.g. with `test()`).
4242

‎DESCRIPTION‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Suggests:
3838
sf,
3939
terra,
4040
testthat (>= 3.0.0),
41-
vcr,
41+
vcr (>= 2.0.0),
4242
withr
4343
VignetteBuilder:
4444
knitr

‎tests/fixtures/npn_download_individual_phenometrics_basic_1.yml‎

Lines changed: 0 additions & 143 deletions
This file was deleted.

‎tests/fixtures/npn_download_individual_phenometrics_climate_flag_1.yml‎

Lines changed: 0 additions & 143 deletions
This file was deleted.

‎tests/fixtures/npn_download_individual_phenometrics_tax_1.yml‎

Lines changed: 0 additions & 655 deletions
This file was deleted.

‎tests/fixtures/npn_download_individual_phenometrics_tax_2.yml‎

Lines changed: 0 additions & 1644 deletions
This file was deleted.

‎tests/fixtures/npn_download_individual_phenometrics_wkt_1.yml‎

Lines changed: 0 additions & 920 deletions
This file was deleted.

‎tests/fixtures/npn_download_individual_phenometrics_wkt_2.yml‎

Lines changed: 0 additions & 904 deletions
This file was deleted.

‎tests/fixtures/npn_download_magnitude_phenometrics_basic_1.yml‎

Lines changed: 0 additions & 176 deletions
This file was deleted.

‎tests/fixtures/npn_download_magnitude_phenometrics_climate_flag_1.yml‎

Lines changed: 0 additions & 176 deletions
This file was deleted.

0 commit comments

Comments
 (0)