Minor rewrite / expand tests

This commit is contained in:
zandercymatics 2023-11-06 15:54:34 -07:00
parent 9fc7ec4bea
commit a4fcca23ba
No known key found for this signature in database
GPG key ID: FF4636ABEC9682B7
11 changed files with 98 additions and 259 deletions

View file

@ -71,6 +71,9 @@ class Command(BaseCommand):
parser.add_argument(
"--directory", default="migrationdata", help="Desired directory"
)
parser.add_argument(
"--infer_filenames", default=False, help="Determines if we should infer filenames or not. Recommended to be enabled only in a development or testing setting."
)
parser.add_argument(
"--agency_adhoc_filename",
default=EnumFilenames.AGENCY_ADHOC.value[1],
@ -97,6 +100,11 @@ class Command(BaseCommand):
default=EnumFilenames.ORGANIZATION_ADHOC.value[1],
help="Defines the filename for domain type adhocs",
)
parser.add_argument(
"--authority_adhoc_filename",
default=EnumFilenames.AUTHORITY_ADHOC.value[1],
help="Defines the filename for domain type adhocs",
)
def print_debug_mode_statements(
self, debug_on: bool, debug_max_entries_to_parse: int
@ -551,6 +559,9 @@ class Command(BaseCommand):
system_exit_on_terminate=False,
info_to_inspect=f"""
!!! ENSURE THAT ALL FILENAMES ARE CORRECT BEFORE PROCEEDING
==Master data file==
domain_additional_filename: {domain_additional_filename}
==Federal agency information==
agency_adhoc_filename: {agency_adhoc_filename}
@ -563,7 +574,7 @@ class Command(BaseCommand):
==Creation date / expiration date information==
domain_escrow_filename: {domain_escrow_filename}
domain_additional_filename: {domain_additional_filename}
==Containing directory==
directory: {directory}
""",
prompt_title=title,