diff --git a/tests/__init__.py b/tests/__init__.py index 6eb78fff..5b57f480 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -159,9 +159,9 @@ def _make_unique(self) -> str: OutputFormat.XML: 'xml', } - _LIMIT_GET_BOM_BY_VERSION_REGEX = re.compile(r'^get_bom_(?Pv(?P1)_(?P[0-6]))?(.*)$') + def mksname(purpose: Union[Any], sv: SchemaVersion, f: OutputFormat) -> Optional[str]: purpose = purpose if isinstance(purpose, str) else purpose.__name__ restrict_to_schema = _LIMIT_GET_BOM_BY_VERSION_REGEX.match(purpose)