Skip to content

Commit

Permalink
add unit test for issue #118 - will fail
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklucius committed Mar 16, 2017
1 parent bdf2a8b commit 288e577
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/testthat/test-all.R
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,12 @@ test_that("read Socrata CSV from New Backend (NBE) endpoint", {
label="testing column CSV classes with defaults")
})

test_that("Warn instead of fail if X-SODA2-* headers are missing", {
dfJson <- read.socrata("https://data.healthcare.gov/resource/enx3-h2qp.json")
dfCsv <- read.socrata("https://data.healthcare.gov/resource/enx3-h2qp.csv")
## the above will fail, more tests to come
})

test_that("read Socrata CSV as character", {
df <- read.socrata('https://soda.demo.socrata.com/resource/4334-bgaj.csv',
stringsAsFactors = FALSE)
Expand Down

0 comments on commit 288e577

Please sign in to comment.