test_download_JSON: Test download method for JSON files works correctly

Description Usage Arguments See Also

Description

Test data can be downloaded if download = TRUE, or a requested snapshot file is not found, and store a snap shot in the snapshot_dir. If an existing snapshot file is found then load this data to use in future tests

Usage

1
test_download_JSON(DataClass_obj, download, snapshot_path)

Arguments

DataClass_obj

The R6Class object to perform checks on. Must be a DataClass or DataClass child object.

download

Logical check to download or use a snapshot of the data

snapshot_path

character_array the path to save the downloaded snapshot to.

See Also

Functions used for testing data is cleaned and processed correctly expect_clean_cols(), expect_columns_contain_data(), expect_processed_cols(), test_cleaning(), test_download(), test_processing(), test_return()


covidregionaldata documentation built on Feb. 7, 2022, 9:07 a.m.