Skip to content

Commit

Permalink
actually need to skip on cran cause cant give env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Dec 3, 2018
1 parent cf71a25 commit c61d568
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/testthat/test-ncdc.r
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
context("ncdc")

test_that("ncdc returns the correct ...", {
skip_on_cran()

vcr::use_cassette("ncdc", {
# Normals Daily GHCND:USW00014895 dly-tmax-normal data
aa <- ncdc(datasetid='NORMAL_DLY', datatypeid='dly-tmax-normal', startdate = '2010-05-01', enddate = '2010-05-10')
Expand Down Expand Up @@ -41,6 +43,8 @@ test_that("ncdc returns the correct ...", {

context("ncdc: add units")
test_that("ncdc add units works", {
skip_on_cran()

vcr::use_cassette("ncdc_add_units", {
# not add units
aa <- ncdc(datasetid='NORMAL_DLY', datatypeid='dly-tmax-normal',
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-ncdc_datacats.r
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
context("ncdc_datacats")

test_that("ncdc_datacats returns the correct ...", {
skip_on_cran()

vcr::use_cassette("ncdc_datacats", {
tt <- ncdc_datacats()
uu <- ncdc_datacats(datacategoryid="ANNAGR")
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-ncdc_datasets.r
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
context("ncdc_datasets")

test_that("ncdc_datasets returns the correct class", {
skip_on_cran()

vcr::use_cassette("ncdc_datasets", {
tt <- ncdc_datasets()
uu <- ncdc_datasets(datasetid='ANNUAL')
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-ncdc_datatypes.r
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
context("ncdc_datatypes")

test_that("ncdc_datatypes returns the correct class", {
skip_on_cran()

vcr::use_cassette("ncdc_datatypes", {
tt <- ncdc_datatypes(datasetid = "ANNUAL")

Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-ncdc_locs.r
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
context("ncdc_locs")

test_that("ncdc_locs returns the correct class", {
skip_on_cran()

vcr::use_cassette("ncdc_locs", {
tt <- ncdc_locs(datasetid='NORMAL_DLY', startdate='20100101')
uu <- ncdc_locs(locationcategoryid='ST', limit=52)
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-ncdc_locs_cats.r
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
context("ncdc_locs_cats")

test_that("ncdc_locs_cats returns the correct ...", {
skip_on_cran()

vcr::use_cassette("ncdc_locs_cats", {
tt <- ncdc_locs_cats()
uu <- ncdc_locs_cats(locationcategoryid='CLIM_REG')
Expand Down
2 changes: 2 additions & 0 deletions tests/testthat/test-ncdc_stations.r
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
context("ncdc_stations")

test_that("ncdc_stations returns the correct...", {
skip_on_cran()

vcr::use_cassette("ncdc_stations", {
bb <- ncdc_stations(stationid='COOP:010008')
cc <- ncdc_stations(datasetid='NORMAL_DLY', stationid='GHCND:USW00014895')
Expand Down

0 comments on commit c61d568

Please sign in to comment.