Skip to content

Commit

Permalink
fix assertion to test that the dataLicense is correctly added to the …
Browse files Browse the repository at this point in the history
…graph

Signed-off-by: Meret Behrens <meret.behrens@tngtech.com>
  • Loading branch information
meretp committed Mar 7, 2023
1 parent 20cc1d8 commit 4021e48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/spdx/writer/rdf/test_creation_info_writer.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

from spdx.datetime_conversions import datetime_to_iso_string
from spdx.writer.rdf.creation_info_writer import add_creation_info_to_graph
from spdx.rdfschema.namespace import SPDX_NAMESPACE
from spdx.rdfschema.namespace import SPDX_NAMESPACE, LICENSE_NAMESPACE
from tests.spdx.fixtures import creation_info_fixture


Expand All @@ -24,7 +24,7 @@ def test_add_creation_info_to_graph():

assert (None, RDF.type, SPDX_NAMESPACE.SpdxDocument) in graph
assert (URIRef(f"{creation_info.document_namespace}#{creation_info.spdx_id}"), None, None) in graph
assert (None, SPDX_NAMESPACE.dataLicense, URIRef(f"https://spdx.org/licenses/{creation_info.data_license}"))
assert (None, SPDX_NAMESPACE.dataLicense, LICENSE_NAMESPACE[creation_info.data_license]) in graph
assert (None, SPDX_NAMESPACE.name, Literal(creation_info.name)) in graph
assert (None, SPDX_NAMESPACE.specVersion, Literal(creation_info.spdx_version)) in graph
assert (None, SPDX_NAMESPACE.creationInfo, None) in graph
Expand Down

0 comments on commit 4021e48

Please sign in to comment.