Skip to content

Commit

Permalink
Merge pull request #340 from wxtim/fix.test_fail
Browse files Browse the repository at this point in the history
Fix test failure caused by Cylc Flow change
  • Loading branch information
wxtim authored Sep 24, 2024
2 parents 6ab790b + 1d3c095 commit 13057ab
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/functional/test_pre_configure.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from itertools import product
import os
from pathlib import Path
import re
from shlex import split
from subprocess import run
from types import SimpleNamespace
Expand All @@ -35,12 +34,15 @@
[
param(
'07_cli_override',
'CLI_VAR=="Wobble", "failed 1.1"',
'failed 1.1\n(add --verbose for more context)',
id='template variable not set'
),
param(
'08_template_engine_conflict',
'.*empy.*#!jinja2.*',
(
'A plugin set the templating engine to empy which does'
' not match #!jinja2 set in flow.cylc.'
),
id='template engine conflict'
)
]
Expand All @@ -50,7 +52,7 @@ async def test_validate_fail(srcdir, expect, cylc_validate_cli):
validate = await cylc_validate_cli(srcdir)
assert validate.ret == 1
if expect:
assert re.findall(expect, str(validate.exc))
assert expect == str(validate.exc)


@pytest.mark.parametrize(
Expand Down

0 comments on commit 13057ab

Please sign in to comment.