Skip to content

Commit 377b837

Browse files
committed
[PRMP-1084] Refactor document review reason handling by importing enum and removing redundant class definition
1 parent a319d52 commit 377b837

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

tests/bulk-upload/scripts/setup_document_review.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,9 @@
88
import boto3
99
from botocore.exceptions import ClientError
1010

11-
SOURCE_PDF_FILE = "../source_to_copy_from.pdf"
11+
from enums.document_review_reason import DocumentReviewReason
1212

13-
class DocumentReviewReason(StrEnum):
14-
UNKNOWN_NHS_NUMBER = "Unknown NHS number"
15-
DEMOGRAPHIC_MISMATCHES = "Demographic mismatches"
16-
DUPLICATE_RECORD = "Duplicate records error"
17-
FILE_COUNT_MISMATCH = "More or less files than we expected"
18-
FILE_NAME_MISMATCH = "Filename Naming convention error"
19-
GP2GP_ERROR = "GP2GP failure"
20-
GENERAL_ERROR = "General error"
13+
SOURCE_PDF_FILE = "../source_to_copy_from.pdf"
2114

2215

2316
class Patient(NamedTuple):

0 commit comments

Comments
 (0)