Skip to content
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

Merged
merged 5 commits into from
Sep 19, 2019
Merged

Fix for gefs tests #319

merged 5 commits into from
Sep 19, 2019

Conversation

potterzot
Copy link
Contributor

Fixes the broken gefs test.

Related Issue

#316, #317

@sckott
Copy link
Contributor

sckott commented Sep 19, 2019

thanks having a look

@sckott sckott added this to the v0.9 milestone Sep 19, 2019
Copy link
Contributor

@sckott sckott left a 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: cant if (raw==FALSE) be simplified to if (!raw) ?

temp = "Temperature_height_above_ground_ens"

# Get raw and processed data
d_raw <- gefs(var = temp,
Copy link
Contributor

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

Copy link
Contributor

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

Copy link
Contributor Author

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks

@sckott sckott merged commit d8dee3d into ropensci:master Sep 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants