Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Kowalleck <jan.kowalleck@gmail.com>
  • Loading branch information
jkowalleck committed May 6, 2024
1 parent 6f17b93 commit 0881bce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cyclonedx/model/contact.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ class OrganizationalEntity:
def __init__(self, *, name: Optional[str] = None, urls: Optional[Iterable[XsUri]] = None,
contacts: Optional[Iterable[OrganizationalContact]] = None,
address: Optional[PostalAddress] = None) -> None:
if not name and not urls and not contacts:
if name is None and not urls and not contacts:
raise NoPropertiesProvidedException(
'One of name, urls or contacts must be supplied for an OrganizationalEntity - none supplied.'
)
Expand Down
2 changes: 1 addition & 1 deletion tests/test_deserialize_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def test_empty_supplier(self) -> None:
with open(json_file) as f:
json = json_loads(f.read())
bom = Bom.from_json(json)
self.assertIs(bom, Bom)
self.assertIsInstance(bom, Bom)


@data(SchemaVersion.V1_4, SchemaVersion.V1_3, SchemaVersion.V1_2)
Expand Down

0 comments on commit 0881bce

Please sign in to comment.