Skip to content

Commit

Permalink
coding standards
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Horton <paul.horton@owasp.org>
  • Loading branch information
madpah committed Apr 5, 2024
1 parent 14f699f commit a3e09d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,9 +159,9 @@ def _make_unique(self) -> str:
OutputFormat.XML: 'xml',
}


_LIMIT_GET_BOM_BY_VERSION_REGEX = re.compile(r'^get_bom_(?P<sv>v(?P<major_version>1)_(?P<minor_version>[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)
Expand Down

0 comments on commit a3e09d1

Please sign in to comment.