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

Taking out WQP tests for now.

parent 046276a6
No related branches found
No related tags found
1 merge request!86remove WQP tests
......@@ -24,18 +24,18 @@ test_that("General NWIS retrievals working", {
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')
# Bring back when WQP is back
# 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
......@@ -122,15 +122,15 @@ context("importWQP_noCRAN")
test_that("External WQP tests", {
testthat::skip_on_cran()
rawSampleURL <- constructWQPURL('USGS-01594440','01075', '', '')
rawSample <- importWQP(rawSampleURL)
expect_is(rawSample$ActivityStartDateTime, 'POSIXct')
url2 <- paste0(rawSampleURL,"&zip=yes")
rawSample2 <- suppressWarnings(importWQP(url2, TRUE))
expect_is(rawSample2$ActivityStartDateTime, 'POSIXct')
STORETex <- constructWQPURL('WIDNR_WQX-10032762','Specific conductance', '', '')
STORETdata <- importWQP(STORETex)
expect_is(STORETdata$ActivityStartDateTime, 'POSIXct')
# rawSampleURL <- constructWQPURL('USGS-01594440','01075', '', '')
# rawSample <- importWQP(rawSampleURL)
# expect_is(rawSample$ActivityStartDateTime, 'POSIXct')
#
# url2 <- paste0(rawSampleURL,"&zip=yes")
# rawSample2 <- suppressWarnings(importWQP(url2, TRUE))
# expect_is(rawSample2$ActivityStartDateTime, 'POSIXct')
#
# STORETex <- constructWQPURL('WIDNR_WQX-10032762','Specific conductance', '', '')
# STORETdata <- importWQP(STORETex)
# expect_is(STORETdata$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