-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Align test and R names * Convert `expect_error()` to `expect_snapshot()` (Fixes #554) * Minor polishing
- Loading branch information
Showing
18 changed files
with
154 additions
and
80 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
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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# by default can not delete dataset containing tables | ||
|
||
Code | ||
bq_dataset_delete(ds) | ||
Condition | ||
Error in `signal_reason()`: | ||
! Dataset gargle-169921:<DATASET> is still in use [resourceInUse] | ||
|
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 |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# errors when table is known to be incomplete | ||
|
||
Code | ||
bq_table_download(tb, n_max = 35000, page_size = 35000, bigint = "integer64") | ||
Condition | ||
Error in `bq_table_download()`: | ||
! First chunk is incomplete: | ||
x 35,000 rows were requested, but only 31,977 rows were received. | ||
i Leave `page_size` unspecified or use an even smaller value. | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# error if env var not set | ||
|
||
Code | ||
bq_test_project() | ||
Condition | ||
Error: | ||
! To run bigrquery tests you must have BIGQUERY_TEST_PROJECT envvar set to name of project which has billing set up and to which you have write access | ||
Code | ||
gs_test_bucket() | ||
Condition | ||
Error: | ||
! To run bigrquery extract/load tests you must have BIGQUERY_TEST_BUCKET set to name of the bucket where `bq_test_project()` has write acess | ||
|
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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# bq_check_namespace() works | ||
|
||
Code | ||
bq_check_namespace("invalid package name", "FIELD_TYPE") | ||
Condition | ||
Error in `bq_check_namespace()`: | ||
! Package 'invalid package name' must be installed to load BigQuery field with type 'FIELD_TYPE' | ||
|
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
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
File renamed without changes.
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
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
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
|
||
test_that("bq_check_namespace() works", { | ||
expect_error(bq_check_namespace("bigrquery", "FIELD_TYPE"), NA) | ||
expect_error( | ||
expect_no_error(bq_check_namespace("bigrquery", "FIELD_TYPE")) | ||
expect_snapshot( | ||
bq_check_namespace("invalid package name", "FIELD_TYPE"), | ||
"must be installed" | ||
error = TRUE | ||
) | ||
}) |