Skip to content

Commit 623539e

Browse files
zhuoran-Cheng16krivard
authored andcommitted
delete the check dir, avoid integration test fail
1 parent bfb15a7 commit 623539e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/acquisition/covidcast/csv_importer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ def find_issue_specific_csv_files(scan_dir, glob=glob):
8888
logger = get_structured_logger('find_issue_specific_csv_files')
8989
for path in sorted(glob.glob(os.path.join(scan_dir, '*'))):
9090
issuedir_match = CsvImporter.PATTERN_ISSUE_DIR.match(path.lower())
91-
if issuedir_match and glob.glob(os.path.isdir(path)):
91+
if issuedir_match:
9292
issue_date_value = int(issuedir_match.group(2))
9393
issue_date = CsvImporter.is_sane_day(issue_date_value)
9494
if issue_date:

tests/acquisition/covidcast/test_csv_importer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def test_find_issue_specific_csv_files(self):
5050
glob_issue_path = path_prefix + issue_path
5151
glob_file_path = path_prefix + issue_path + '/ght/20200408_state_rawsearch.csv'
5252
mock_glob = MagicMock()
53-
mock_glob.glob.side_effect = ([glob_issue_path], [glob_file_path], [glob_file_path])
53+
mock_glob.glob.side_effect = ([glob_issue_path], [glob_file_path])
5454

5555
#check if the day is a valid issue day.
5656
issuedir_match = CsvImporter.PATTERN_ISSUE_DIR.match(glob_issue_path.lower())

0 commit comments

Comments
 (0)