File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
_delphi_utils_python/tests/validator Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ def test_empty_filelist(self):
21
21
}
22
22
}
23
23
validator = StaticValidator (params )
24
+ #wtf is this
24
25
report = ValidationReport ([])
25
26
report = ValidationReport ([])
26
27
@@ -30,6 +31,26 @@ def test_empty_filelist(self):
30
31
assert len (report .raised_errors ) == 1
31
32
assert report .raised_errors [0 ].check_name == "check_empty_filelist"
32
33
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
+
33
54
def test_same_day (self ):
34
55
params = {
35
56
"common" : {
You can’t perform that action at this time.
0 commit comments