mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-02-23 10:04:18 -08:00
10 lines
328 B
Python
10 lines
328 B
Python
|
import pytest
|
||
|
from data_pipeline.etl import constants, 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")
|