From 1d3c095b3c6c54d1088883b58aa174d9299646e5 Mon Sep 17 00:00:00 2001 From: Tim Pillinger Date: Fri, 16 Aug 2024 12:08:46 +0100 Subject: [PATCH] fix test failing at --- tests/functional/test_pre_configure.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/functional/test_pre_configure.py b/tests/functional/test_pre_configure.py index 5b597ba3..25b99519 100644 --- a/tests/functional/test_pre_configure.py +++ b/tests/functional/test_pre_configure.py @@ -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 @@ -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' ) ] @@ -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(