-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Skip tests that require authentication (fixes #174)
- Loading branch information
1 parent
fcf63e3
commit e9716db
Showing
1 changed file
with
6 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,6 +6,8 @@ library(mime) | |
library(plyr) | ||
|
||
## Credentials for testing private dataset and update dataset functionality ## | ||
# This is commented out because of issue #174 as a temporary work-around. | ||
# This should be re-enabled in the future with a work-around. | ||
socrataEmail <- Sys.getenv("SOCRATA_EMAIL", "[email protected]") | ||
socrataPassword <- Sys.getenv("SOCRATA_PASSWORD", "7vFDsGFDUG") | ||
|
||
|
@@ -457,6 +459,7 @@ privateResourceToReadCsvUrl <- "https://soda.demo.socrata.com/resource/a9g2-feh2 | |
privateResourceToReadJsonUrl <- "https://soda.demo.socrata.com/resource/a9g2-feh2.json" | ||
|
||
test_that("read Socrata CSV that requires a login", { | ||
skip('See Issue #174') | ||
# should error when no email and password are sent with the request | ||
expect_error(read.socrata(url = privateResourceToReadCsvUrl)) | ||
# try again, this time with email and password in the request | ||
|
@@ -467,6 +470,7 @@ test_that("read Socrata CSV that requires a login", { | |
}) | ||
|
||
test_that("read Socrata JSON that requires a login", { | ||
skip('See Issue #174') | ||
# should error when no email and password are sent with the request | ||
expect_error(read.socrata(url = privateResourceToReadJsonUrl)) | ||
# try again, this time with email and password in the request | ||
|
@@ -479,6 +483,7 @@ test_that("read Socrata JSON that requires a login", { | |
context("write Socrata datasets") | ||
|
||
test_that("add a row to a dataset", { | ||
skip('See Issue #174') | ||
datasetToAddToUrl <- "https://soda.demo.socrata.com/resource/xh6g-yugi.json" | ||
|
||
# populate df_in with two columns, each with a random number | ||
|
@@ -496,6 +501,7 @@ test_that("add a row to a dataset", { | |
|
||
|
||
test_that("fully replace a dataset", { | ||
skip('See Issue #174') | ||
datasetToReplaceUrl <- "https://soda.demo.socrata.com/resource/kc76-ybeq.json" | ||
|
||
# populate df_in with two columns of random numbers | ||
|