Skip to content

Commit

Permalink
fixing travis errors
Browse files Browse the repository at this point in the history
  • Loading branch information
mps9506 committed Sep 6, 2018
1 parent 6a92414 commit 910d4a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -189,11 +189,11 @@ insertQColumns <- function(valuesList) {
columnsToParse <- function(program, colNums) {

if (program == "caa") {
meta <- httr::content(httr::GET(url = "https:///ofmpub.epa.gov/echo/air_rest_services.metadata?output=JSON"))
meta <- httr::content(httr::GET(url = "https://ofmpub.epa.gov/echo/air_rest_services.metadata?output=JSON"))
} else if (program == "cwa") {
meta <- httr::content(httr::GET(url = "https:///ofmpub.epa.gov/echo/cwa_rest_services.metadata?output=JSON"))
meta <- httr::content(httr::GET(url = "https://ofmpub.epa.gov/echo/cwa_rest_services.metadata?output=JSON"))
} else if (program == "sdw") {
meta <- httr::content(httr::GET(url = "https:///ofmpub.epa.gov/echo/sdw_rest_services.metadata?output=JSON"))
meta <- httr::content(httr::GET(url = "https://ofmpub.epa.gov/echo/sdw_rest_services.metadata?output=JSON"))
} else {
stop("Incorrect argument specified in columnsToParse(). program should be a character == to 'caa', 'cwa', or 'sdw'")}

Expand Down
2 changes: 0 additions & 2 deletions tests/testthat/test-expected_errors.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ context("core functions return expected errors")

test_that("core functions returns expected errors", {
expect_error(echoAirGetFacilityInfo(), "No valid arguments supplied")
expect_error(echoAirGetFacilityInfo(p_pid = "NC0000003706500036", output = "JSON"),
"output argument = JSON, when it should be either 'df' or 'sf'")
expect_error(echoGetReports(program = "sdw"),
"the argument 'program' must be specified as one of 'caa' or 'cwa'")
expect_error(echoSDWGetSystems(),
Expand Down

0 comments on commit 910d4a6

Please sign in to comment.