Ignore multiple whitespace in tftest directives

This commit is contained in:
Julio Castillo 2022-12-15 15:22:20 +01:00
parent aba14fe574
commit aaacee2a70
1 changed files with 3 additions and 3 deletions

View File

@ -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):