Skip to content

Commit 7a8a6b6

Browse files
committed
sample run for validation
1 parent 17b7e21 commit 7a8a6b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

testing_utils/google_symptoms/validate_patch.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,20 +127,20 @@ def compare_to_api(actual_files, run_type, issues=datetime.now().strftime("%Y%m%
127127
patch_dirs = sorted(list(Path(f"{SOURCE_DIR}/patch_dir/").glob("issue*")))
128128
# Testing for number of signals
129129
for patch_dir in patch_dirs:
130-
patch_files = sorted(list(Path(f"{patch_dir}/google-symptom").glob("*.csv")))
130+
patch_files = sorted(list(Path(f"{patch_dir}/google-symptoms").glob("*.csv")))
131131
check_signal_num(patch_files)
132132

133133
# Testing for matching regular run with patch run (the enddate should match up to the last date in the patch run)
134134
regular_dir = sorted(list(Path(f"{SOURCE_DIR}/regular_run").glob("*.csv")))
135-
patch_dir = sorted(list(Path(f"{SOURCE_DIR}/patch_dir/issue_yyyymmdd/google-symptom").glob("*.csv")))
135+
patch_dir = sorted(list(Path(f"{SOURCE_DIR}/patch_dir/issue_yyyymmdd/google-symptoms").glob("*.csv")))
136136
compare(regular_dir, patch_dir)
137137

138138
# Testing against the api; The data in the api require a range of date to validate
139139
# as runs at the time some of the earlier date may be only available on previous issue dates
140-
compare_to_api(sorted(list(Path(f"{SOURCE_DIR}/fix_patch_today/issue_20240801/google-symptom").glob(f"*.csv"))),
140+
compare_to_api(sorted(list(Path(f"{SOURCE_DIR}/fix_patch_today/issue_20240801/google-symptoms").glob(f"*.csv"))),
141141
"fix_patch", Epidata.range("20240731", str(20240802)))
142142
for i in range(2,6):
143-
compare_to_api(sorted(list(Path(f"{SOURCE_DIR}/fix_patch_today/issue_2024080{i}/google-symptom").glob(f"*.csv"))), "fix_patch", Epidata.range(str(20240800 + i - 1), str(20240801 + i)))
143+
compare_to_api(sorted(list(Path(f"{SOURCE_DIR}/fix_patch_today/issue_2024080{i}/google-symptoms").glob(f"*.csv"))), "fix_patch", Epidata.range(str(20240800 + i - 1), str(20240801 + i)))
144144

145145

146146

0 commit comments

Comments
 (0)