diff --git a/autosubmit/autosubmit.py b/autosubmit/autosubmit.py index 903805e8941c05ff31d3853b80eac06cf7cad10e..99df91461b41cfc863313c96b164441862de61cf 100644 --- a/autosubmit/autosubmit.py +++ b/autosubmit/autosubmit.py @@ -2512,7 +2512,7 @@ class Autosubmit: jobs_section = set([job.section for job in job_list.get_ready()]) for section in jobs_section: if check_jobs_file_exists(as_conf, section): - raise AutosubmitCritical(f"Job {self.name} does not have a correct template// template not found", 7014) + raise AutosubmitCritical(f"Job {section} does not have a correct template// template not found", 7014) try: for platform in platforms_to_test: packager = JobPackager(as_conf, platform, job_list, hold=hold) @@ -3573,7 +3573,7 @@ class Autosubmit: not_enough_screen_size_msg = 'The size of your terminal is not enough to draw the configuration wizard,\n' \ 'so we\'ve closed it to prevent errors. Resize it and then try it again.' - home_path = Path(home_path).expanduser().resolve() + home_path = Path("~").expanduser().resolve() try: d = dialog.Dialog( diff --git a/autosubmit/platforms/lsfplatform.py b/autosubmit/platforms/lsfplatform.py index ed65c772d3304004bd1da59af57dceed9e5b3045..ca3c23d6896cdc3dbe3f1818ed93a411a3dd0217 100644 --- a/autosubmit/platforms/lsfplatform.py +++ b/autosubmit/platforms/lsfplatform.py @@ -136,6 +136,13 @@ class LsfPlatform(ParamikoPlatform): {6} # ############################################################################### - """.format(filename, queue, project, wallclock, num_procs, dependency, - '\n'.ljust(13).join(str(s) for s in directives)) + """.format( + kwargs["filename"], + kwargs["queue"], + kwargs["project"], + kwargs["wallclock"], + kwargs["num_procs"], + kwargs["dependency"], + "\n".ljust(13).join(str(s) for s in kwargs["directives"]), + ) diff --git a/test/unit/test_job_list.py b/test/unit/test_job_list.py index 840a9c4a4266b168840ea9ebd140e7ae9b2d567b..39f91529c1f5e00417142159c6e16b7e165ae44c 100644 --- a/test/unit/test_job_list.py +++ b/test/unit/test_job_list.py @@ -1,3 +1,4 @@ +import inspect from unittest.mock import MagicMock import os