test_diseasystore {diseasystore} | R Documentation |
This function runs a battery of tests of the given diseasystore.
The supplied diseasystore must be a generator for the diseasystore, not an instance of the diseasystore.
The tests assume that data has been made available locally to run the majority of the tests. The location of the local data should be configured in the options for "source_conn" of the given diseasystore before calling test_diseasystore.
test_diseasystore(
diseasystore_generator = NULL,
conn_generator = NULL,
data_files = NULL,
target_schema = "test_ds",
test_start_date = NULL,
...
)
diseasystore_generator |
( |
conn_generator |
( |
data_files |
( |
target_schema |
( |
test_start_date |
( |
... |
Other parameters passed to the diseasystore generator. |
NULL (called for side effects)
withr::local_options("diseasystore.DiseasystoreEcdcRespiratoryViruses.pull" = FALSE)
test_diseasystore(
DiseasystoreEcdcRespiratoryViruses,
\() list(DBI::dbConnect(RSQLite::SQLite())),
data_files = "data/snapshots/2023-11-24_ILIARIRates.csv",
target_schema = "test_ds",
test_start_date = as.Date("2022-06-20"),
slice_ts = "2023-11-24"
)