Skip to content

Commit

Permalink
Fix test 2
Browse files Browse the repository at this point in the history
  • Loading branch information
YolanFery committed Dec 20, 2024
1 parent 0d71fef commit bd2fb8e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions hexa/pipeline_templates/tests/test_schema/test_templates.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
),
}
},
)
Expand Down

0 comments on commit bd2fb8e

Please sign in to comment.