Skip to content
Snippets Groups Projects
Commit 6b7c33ee authored by Laura A DeCicco's avatar Laura A DeCicco
Browse files

Adding new tests that will skip on CRAN, but check on CHECK.

parent bc7633be
No related branches found
No related tags found
1 merge request!81New testing
library(testthat)
library(dataRetrieval)
test_check("dataRetrieval")
\ No newline at end of file
context("Unit values")
test_that("Unit value data returns correct types", {
testthat::skip_on_cran()
siteNumber <- '05114000'
parameterCd <- '00060'
startDate <- "2014-10-10"
endDate <- "2014-10-10"
rawData <- readNWISuv(siteNumber,parameterCd,startDate,endDate)
timeZoneChange <- readNWISuv(c('04024430','04024000'),parameterCd,
"2013-11-03","2013-11-03")
expect_is(rawData$dateTime, 'POSIXct')
})
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment