-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
You can get country specific POLIS data & fix bug in save_polis_data
- Loading branch information
Showing
14 changed files
with
60 additions
and
37 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
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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 @@ | ||
testthat::test_that("Check Status API Responses", { | ||
# Testing for successful status code 200 | ||
expect_null(check_status_api(200)) | ||
testthat::expect_null(check_status_api(200)) | ||
# Testing for various error status codes | ||
expect_error(check_status_api(413)) | ||
testthat::expect_error(check_status_api(413)) | ||
# Testing for an unspecified status code | ||
expect_error(check_status_api(999)) | ||
testthat::expect_error(check_status_api(999)) | ||
}) |
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 |
---|---|---|
@@ -1,16 +1,16 @@ | ||
testthat::test_that("Get API Date Suffix Functionality", { | ||
# Test for valid data types | ||
expect_equal(get_api_date_suffix("cases"), | ||
testthat::expect_equal(get_api_date_suffix("cases"), | ||
list(endpoint_suffix = "Case", | ||
date_fields_initial = "CaseDate", | ||
date_field = "LastUpdateDate")) | ||
expect_equal(get_api_date_suffix("virus"), | ||
testthat::expect_equal(get_api_date_suffix("virus"), | ||
list(endpoint_suffix = "Virus", | ||
date_fields_initial = "VirusDate", | ||
date_field = "UpdatedDate")) | ||
# Add more tests for other valid data types | ||
|
||
# Test for an invalid data type | ||
expect_error( | ||
testthat::expect_error( | ||
get_api_date_suffix("invalid_type"), "Invalid data_type specified") | ||
}) |
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