diff --git a/saagieapi/jobs/jobs.py b/saagieapi/jobs/jobs.py index a2813da..d8a78b5 100644 --- a/saagieapi/jobs/jobs.py +++ b/saagieapi/jobs/jobs.py @@ -567,7 +567,7 @@ def create( f"❌ Runtime {runtime_version} for technology {technology} does not exist " f"in the catalog {technology_catalog} or is deprecated" ) - if extra_technology is not None or extra_technology != "": + if extra_technology is not None and extra_technology != "": params["extraTechnology"] = {"language": extra_technology, "version": extra_technology_version} if emails: diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index fa90cb5..6ad830f 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -131,8 +131,6 @@ def create_job(create_global_project): runtime_version="3.9", command_line="python {file} arg1 arg2", release_note="", - extra_technology="", - extra_technology_version="", ) return job["data"]["createJob"]["id"]