Skip to content

Commit f34f9b1

Browse files
M5SkidAnanya Joshi
authored and
Ananya Joshi
committed
add back in missing file check
1 parent 522cc36 commit f34f9b1

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

_delphi_utils_python/tests/validator/test_static.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def test_empty_filelist(self):
2121
}
2222
}
2323
validator = StaticValidator(params)
24+
#wtf is this
2425
report = ValidationReport([])
2526
report = ValidationReport([])
2627

@@ -30,6 +31,26 @@ def test_empty_filelist(self):
3031
assert len(report.raised_errors) == 1
3132
assert report.raised_errors[0].check_name == "check_empty_filelist"
3233

34+
def test_missing_date_files(self):
35+
params = {
36+
"common": {
37+
"data_source": "",
38+
"span_length": 5,
39+
"end_date": "2020-09-05",
40+
"max_expected_lag": {"all": "1"}
41+
}
42+
}
43+
validator = StaticValidator(params)
44+
report = ValidationReport([])
45+
filenames = [("20200901_county_signal_signal.csv", "match_obj"),
46+
("20200903_county_signal_signal.csv", "match_obj"),
47+
("20200904_county_signal_signal.csv", "match_obj"),
48+
("20200905_county_signal_signal.csv", "match_obj")]
49+
validator.check_missing_date_files(filenames, report)
50+
assert len(report.raised_errors) == 1
51+
assert report.raised_errors[0].check_name == "check_missing_date_files"
52+
53+
3354
def test_same_day(self):
3455
params = {
3556
"common": {

0 commit comments

Comments
 (0)