Skip to content

Commit 6d6c6a5

Browse files
committed
Patch validator for chng subdivision mapping change
1 parent 716f733 commit 6d6c6a5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

_delphi_utils_python/delphi_utils/validator/datafetcher.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,9 @@ def get_geo_signal_combos(data_source):
111111
Cross references based on combinations reported available by COVIDcast metadata.
112112
"""
113113
# Maps data_source name with what's in the API, lists used in case of multiple names
114+
# TODO: https://github.com/cmu-delphi/covidcast-indicators/issues/1457
115+
# Extract this mapping from meta response instead of hard-coding
114116
source_signal_mappings = {
115-
'chng': ['chng-cli', 'chng-covid'],
116117
'indicator-combination': ['indicator-combination-cases-deaths'],
117118
'quidel': ['quidel-covid-ag'],
118119
'safegraph': ['safegraph-weekly']

_delphi_utils_python/tests/validator/test_datafetcher.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ def test_make_date_filter(self):
2121
assert not date_filter(FILENAME_REGEX.match("20200620_a_b.csv"))
2222
assert not date_filter(FILENAME_REGEX.match("202006_a_b.csv"))
2323

24+
# TODO: https://github.com/cmu-delphi/covidcast-indicators/issues/1456
25+
# mock out the advanced meta endpoint /covidcast/meta as well
2426
@mock.patch("covidcast.metadata")
2527
def test_get_geo_signal_combos(self, mock_metadata):
2628
"""Test that the geo signal combos are correctly pulled from the covidcast metadata."""

0 commit comments

Comments
 (0)