mirror of
https://github.com/DOI-DO/j40-cejst-2.git
synced 2025-08-03 16:54:19 -07:00
Adding back census to list of potential datasets, but separating out from standard list (#484)
Error this addresses: File "/Users/lucas/Documents/usds/repos/justice40-tool/data/data-pipeline/data_pipeline/etl/runner.py", line 71, in etl_runner f"data_pipeline.etl.sources.{dataset['module_dir']}.etl" TypeError: 'NoneType' object is not subscriptable
This commit is contained in:
parent
f51b0d69d9
commit
ec19d86f6f
5 changed files with 80 additions and 51 deletions
9
data/data-pipeline/data_pipeline/etl/tests/test_etl.py
Normal file
9
data/data-pipeline/data_pipeline/etl/tests/test_etl.py
Normal file
|
@ -0,0 +1,9 @@
|
|||
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")
|
Loading…
Add table
Add a link
Reference in a new issue