Skip to content

Commit ac4857c

Browse files
[PRMT-229] - WIP
1 parent 76d714e commit ac4857c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/bulk-upload/scripts/updated_setup_bulk_upload.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
import argparse
2+
import os
23
import random
34
from enum import StrEnum
45
from typing import NamedTuple
56

67
import boto3
78

8-
SOURCE_PDF_FILE_NAME = "source_to_copy_from.pdf"
9-
SOURCE_PDF_FILE = "../source_to_copy_from.pdf"
9+
SOURCE_PDF_FILE_NAME = "default/source_to_copy_from.pdf"
10+
SOURCE_PDF_FILE = "source_to_copy_from.pdf"
1011

1112
NHS_NUMBER_INVALID_FILE_NAME = []
1213
NHS_NUMBER_INVALID_FILES_NUMBER = []
@@ -148,6 +149,8 @@ def copy_to_s3(file_names_and_keys: list[tuple[str, str]], source_file_key: str)
148149

149150
def upload_lg_files_to_staging(file_key):
150151
# this one is a bit flaky
152+
os.chdir("../output")
153+
151154
client = boto3.client("s3")
152155
client.upload_file(
153156
Filename=SOURCE_PDF_FILE,

0 commit comments

Comments
 (0)