From 4b750443c699e2ccd8719b7d51311747e436ad35 Mon Sep 17 00:00:00 2001 From: Team Service Date: Mon, 2 Oct 2023 10:00:56 +0200 Subject: [PATCH] fix creation of job --- saagieapi/jobs/jobs.py | 2 +- tests/integration/conftest.py | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/saagieapi/jobs/jobs.py b/saagieapi/jobs/jobs.py index a2813dae..d8a78b58 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 fa90cb56..6ad830f2 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"]