From aaacee2a70806a71c7a2fb2fda6b09f501977b7d Mon Sep 17 00:00:00 2001 From: Julio Castillo Date: Thu, 15 Dec 2022 15:22:20 +0100 Subject: [PATCH] Ignore multiple whitespace in tftest directives --- tests/examples/test_plan.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/examples/test_plan.py b/tests/examples/test_plan.py index d5aaf46f..c7fd8dac 100644 --- a/tests/examples/test_plan.py +++ b/tests/examples/test_plan.py @@ -16,9 +16,9 @@ import re from pathlib import Path BASE_PATH = Path(__file__).parent -COUNT_TEST_RE = re.compile(r'# tftest modules=(\d+) resources=(\d+)' + - r'(?: files=([\w,-.]+))?' + - r'(?: inventory=([\w\-.]+))?') +COUNT_TEST_RE = re.compile(r'# tftest +modules=(\d+) +resources=(\d+)' + + r'(?: +files=([\w,-.]+))?' + + r'(?: +inventory=([\w\-.]+))?') def test_example(plan_validator, tmp_path, example):