Skip to content

Commit

Permalink
fix test failing at
Browse files Browse the repository at this point in the history
  • Loading branch information
wxtim committed Aug 16, 2024
1 parent 6ab790b commit 1d3c095
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 1d3c095

Please sign in to comment.