Skip to content

Commit d049973

Browse files
committed
debug
1 parent 4ff0c52 commit d049973

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

e2e_batch/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@ run-immunization-batch:
1212
ENVIRONMENT=$(environment) poetry run python -m unittest -v -c
1313

1414
test:
15+
ENVIRONMENT=$(environment) poetry run python -m unittest -v -c
16+
17+
testp1:
1518
ENVIRONMENT=$(ENVIRONMENT) time poetry run unittest-parallel -v -j $(PARALLEL_WORKERS)
1619

17-
test2:
20+
testp2:
1821
ENVIRONMENT=$(ENVIRONMENT) poetry run pytest -n $(PARALLEL_WORKERS) -v

e2e_batch/utils.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,11 @@ def generate_csv(fore_name, dose_amount, action_flag, headers="NHS_NUMBER", same
8686

8787
df = pd.DataFrame(data)
8888
timestamp = datetime.now(timezone.utc).strftime("%Y%m%dT%H%M%S%f")[:-3]
89+
# "RSV", "YGM41"
8990
file_name = (
90-
f"COVID19_Vaccinations_v4_YGM41_{timestamp}.csv"
91+
f"RSV_Vaccinations_v4_YGM41_{timestamp}.csv"
9192
if file_key
92-
else f"COVID19_Vaccinations_v5_YGM41_{timestamp}.csv"
93+
else f"RSV_Vaccinations_v5_YGM41_{timestamp}.csv"
9394
)
9495
# file_name = get_file_name(vax_type, ods, "4" if file_key else "5")
9596
df.to_csv(file_name, index=False, sep="|", quoting=csv.QUOTE_MINIMAL)

recordprocessor/src/utils_for_recordprocessor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ def get_environment() -> str:
1616
def get_csv_content_dict_reader(file_key: str) -> DictReader:
1717
"""Returns the requested file contents from the source bucket in the form of a DictReader"""
1818
logger.info("SAW> get_csv_content_dict_reader..1")
19+
logger.info("SAW> Fetch file: %s", file_key)
20+
logger.info("SAW> SOURCE_BUCKET_NAME: %s", os.getenv("SOURCE_BUCKET_NAME"))
1921
response = s3_client.get_object(Bucket=os.getenv("SOURCE_BUCKET_NAME"), Key=file_key)
2022
logger.info("SAW> get_csv_content_dict_reader..2")
2123
binary_io = response["Body"]

0 commit comments

Comments
 (0)