diff --git a/tests/test_cli.py b/tests/test_cli.py index e51e04c..e591ed8 100644 --- a/tests/test_cli.py +++ b/tests/test_cli.py @@ -15,7 +15,8 @@ def run_cli(*args: str, **kwargs: Mapping) -> subprocess.CompletedProcess: @pytest.fixture(scope="session") def populator_help_pattern(): - return re.compile(f"{{({',?|'.join([imp.replace('.', '\\.') for imp in implementations.__all__])},?)+}}") + name_options = ',?|'.join([imp.replace('.', '\\.') for imp in implementations.__all__]) + return re.compile(f"{{({name_options},?)+}}") def test_help():