j40-cejst-2/data/data-pipeline/data_pipeline/tests/test_etl.py
Lucas Merrill Brown 6e6223cd5e
Issue 105: Configure and run black and other pre-commit hooks (clean branch) (#1962)
* Configure and run `black` and other pre-commit hooks

Co-authored-by: matt bowen <matthew.r.bowen@omb.eop.gov>
2022-10-04 18:08:47 -04:00

11 lines
395 B
Python

# pylint: disable=protected-access
import pytest
from data_pipeline.etl import constants
from data_pipeline.etl import runner
def test_get_datasets_to_run():
assert runner._get_datasets_to_run(None) == constants.DATASET_LIST
assert runner._get_datasets_to_run("census") == [constants.CENSUS_INFO]
with pytest.raises(ValueError):
runner._get_datasets_to_run("doesnt_exist")