Skip to content

Commit 1907a46

Browse files
committed
Bucket=None
1 parent 4ffb474 commit 1907a46

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lambdas/recordprocessor/tests/test_recordprocessor_edge_cases.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55

66
from batch_processor import process_csv_to_fhir
77
from utils_for_recordprocessor_tests.utils_for_recordprocessor_tests import (
8-
BucketNames,
98
create_patch,
109
)
1110

@@ -82,11 +81,11 @@ def test_process_large_file_cp1252(self):
8281
self.mock_logger_warning.assert_called()
8382
warning_call_args = self.mock_logger_warning.call_args[0][0]
8483
self.assertTrue(warning_call_args.startswith("Encoding Error: 'utf-8' codec can't decode byte 0xe9"))
85-
# TODO: when running all tests this expects Bucket=None. not clear why.
84+
# TODO: when running standalone this expects BucketNames.SOURCE. not clear why.
8685
mock_s3.get_object.assert_has_calls(
8786
[
88-
call(Bucket=BucketNames.SOURCE, Key="test-filename"),
89-
call(Bucket=BucketNames.SOURCE, Key="processing/test-filename"),
87+
call(Bucket=None, Key="test-filename"),
88+
call(Bucket=None, Key="processing/test-filename"),
9089
]
9190
)
9291

0 commit comments

Comments
 (0)