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

Added tests.

parent 6a165302
No related branches found
No related tags found
1 merge request!85Updates mainly to expose sysdata, but also improvements in readNWISdata and qw.
......@@ -19,4 +19,23 @@ test_that("General NWIS retrievals working", {
siteInfo <- readNWISdata(stateCd="WI", parameterCd="00010",hasDataTypeCd="iv",
service="site")
})
test_that("General WQP retrievals working", {
testthat::skip_on_cran()
nameToUse <- "pH"
pHData <- readWQPdata(siteid="USGS-04024315",characteristicName=nameToUse)
expect_is(pHData$ActivityStartDateTime, 'POSIXct')
pHDataExpanded2 <- readWQPdata(bBox=c(-90.10,42.67,-88.64,43.35),
characteristicName=nameToUse)
expect_is(pHDataExpanded2$ActivityStartDateTime, 'POSIXct')
startDate <- as.Date("2013-01-01")
nutrientDaneCounty <- readWQPdata(countycode="US:55:025",startDate=startDate,
characteristicType="Nutrient")
expect_is(nutrientDaneCounty$ActivityStartDateTime, '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