@@ -56,29 +56,29 @@ def import_cli_module(self):
5656 cli_module = importlib .util .module_from_spec (spec )
5757 spec .loader .exec_module (cli_module )
5858 return cli_module
59-
59+
6060 def generate_test_responses (self ):
61- """Generate test responses for CLI prompts"""
62- return {
63- "What would you like to do? (create/edit/profile/exit): " : "create" ,
64- "Do you want to use metadata from an existing file or create new metadata? (existing/create): " : "create" ,
65- "Enter the title of the dataset: " : f"Test Dataset { self .timestamp } " ,
66- "Enter the abstract or description of the dataset: " : "This is an automated test dataset containing sample climate data for validation purposes." ,
67- "Enter the number corresponding to the desired license: " : "1" ,
68- "Use saved profile? (y/n): " : "n" ,
69- "Enter your ORCID identifier: " : os .environ .get (
70- "TEST_ORCID" , "0000-0002-1825-0097"
71- ),
72- "How many funding entries do you want to provide? " : "1" ,
73- "Enter the award number for funding: " : "NSF-1234567" ,
74- "Enter the award title for funding: " : "Automated Testing Grant" ,
75- "Enter the funder ROR (https://ror.org): " : "021nxhr62" ,
76- "Do you want to upload or link data files? (upload/link/n): " : "upload" ,
77- "Enter the filename to upload as a supporting file (or 'n' to finish): " : "test_data.csv" ,
78- "Do you want to add more files? (y/n): " : "n" ,
79- "Do you want to send this record to CaltechDATA? (y/n): " : "y" ,
80- }
81-
61+ """Generate test responses for CLI prompts"""
62+ return {
63+ "What would you like to do? (create/edit/profile/exit): " : "create" ,
64+ "Do you want to use metadata from an existing file or create new metadata? (existing/create): " : "create" ,
65+ "Enter the title of the dataset: " : f"Test Dataset { self .timestamp } " ,
66+ "Enter the abstract or description of the dataset: " : "This is an automated test dataset containing sample climate data for validation purposes." ,
67+ "Enter the number corresponding to the desired license: " : "1" ,
68+ "Use saved profile? (y/n): " : "n" ,
69+ "Enter your ORCID identifier: " : os .environ .get (
70+ "TEST_ORCID" , "0000-0002-1825-0097"
71+ ),
72+ "How many funding entries do you want to provide? " : "1" ,
73+ "Enter the award number for funding: " : "NSF-1234567" ,
74+ "Enter the award title for funding: " : "Automated Testing Grant" ,
75+ "Enter the funder ROR (https://ror.org): " : "021nxhr62" ,
76+ "Do you want to upload or link data files? (upload/link/n): " : "upload" ,
77+ "Enter the filename to upload as a supporting file (or 'n' to finish): " : "test_data.csv" ,
78+ "Do you want to add more files? (y/n): " : "n" ,
79+ "Do you want to send this record to CaltechDATA? (y/n): " : "y" ,
80+ }
81+
8282 def run_test_submission (self ):
8383 """Run the complete test submission process"""
8484 try :
0 commit comments