From bd2fb8ea017123d3c233c903837ea5ccea99a64e Mon Sep 17 00:00:00 2001 From: YolanFery Date: Fri, 20 Dec 2024 18:11:17 +0100 Subject: [PATCH] Fix test 2 --- .../tests/test_schema/test_templates.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/hexa/pipeline_templates/tests/test_schema/test_templates.py b/hexa/pipeline_templates/tests/test_schema/test_templates.py index 0d8133a03..2938a8d79 100644 --- a/hexa/pipeline_templates/tests/test_schema/test_templates.py +++ b/hexa/pipeline_templates/tests/test_schema/test_templates.py @@ -127,19 +127,20 @@ def test_create_pipeline_from_template_version(self): r["data"]["createPipelineFromTemplateVersion"], ) - def test_create_pipeline_from_template_version_duplicate(self): r = self.run_query( """ - mutation createPipelineFromTemplateVersion($input: CreatePipelineFromTemplateVersionInput!) { - createPipelineFromTemplateVersion(input: $input) { - success errors pipeline {name code} - } + mutation createPipelineFromTemplateVersion($input: CreatePipelineFromTemplateVersionInput!) { + createPipelineFromTemplateVersion(input: $input) { + success errors pipeline {name code currentVersion {zipfile parameters {code default} config}} } - """, + } + """, { "input": { "workspaceSlug": self.WS1.slug, - "templateVersionId": str(self.PIPELINE_VERSION1.id), + "pipelineTemplateVersionId": str( + self.PIPELINE_VERSION1.template_version.id + ), } }, )