-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handle cases when httr/crul writes to disk #81
Comments
possible plan:
location o f cached files (e.g.,
this is def. going to be slow, but overall speeds up test suite, so fine should also tell users that they can alternatively just read into memory then write to disk after and vcr will work already as is |
applies to both:
and
|
|
related fix in crul ropensci/crul#115 |
here's a tough case: where the fxn caches a file from the HTTP request somewhere on disk - how do we deal with this in a vcr testing context? an example is |
this commit fixing remaining holes in httr handling bump pkg version
* #290 - working on integrating vcr handling writing to disk, not done yet related: ropensci/vcr#81 ropensci/webmockr#57 * playing with buoy tests, check back in #FIXME * cpc_prcp test tweaks * man file updates * arc2 fixes, use new write to disk setup * #290 writing to disk work, not done yet * fixes for lcd and isd tests that also cache files * fixed some tests #290 * fix storms test * use relative paths with new vcr version * move write to disk files to inst/ - test check on travis | ropensci/vcr#164 * try commenting out deleting user cached files for ersst tests * comment out one ersst test, does it work now? * try ersst tests each with different file on disk - was previously using the same file perhaps that was leading to failure if e.g. file was opened but not closed before next test ran amybe * remove .Rinstignore, and try inst/test_files in .Rbuildignore if it works on travis * remove inst/test_files from rbuildignore * move test files back to tests/files/ * add .Rinstignore for ignoring test on disk files * woops, needed to fix write_disk_path
investigate if same problem occurs with httr or not.
use case right now is rnoaa, where many functions write to disk - vcr is throwing erors like: with this block https://github.com/ropensci/rnoaa/blob/master/tests/testthat/test-buoy.R#L26-L41
The text was updated successfully, but these errors were encountered: