-
Notifications
You must be signed in to change notification settings - Fork 84
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
Fix for gefs tests #319
Fix for gefs tests #319
Conversation
thanks having a look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tests pass now, thx for that/
- a few comments inline on the changes
- in the
gefs_GET
function: cantif (raw==FALSE)
be simplified toif (!raw)
?
tests/testthat/test-gefs.R
Outdated
temp = "Temperature_height_above_ground_ens" | ||
|
||
# Get raw and processed data | ||
d_raw <- gefs(var = temp, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd like any code in tests that make HTTP requests to be skipped on cran because any http request failure could cause cran maintainers to throw a tantrum
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you can do variable assignment up here but not HTTP requests
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, I knew there was a reason I had it differently before. Ultimately I should move those to mock api calls but for now I've moved them inside of the test and put all tests related to the returned data object inside of one test_that()
call.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks
Fixes the broken gefs test.
Related Issue
#316, #317