-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[issue-547] fix rdf parser #549
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should have two tests, one for each case of how the license Id could be present.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I have added a test for this.
], | ||
) | ||
def test_parse_extracted_licensing_info( | ||
parent_node_object, license_id, extracted_text, comment, license_name, cross_references |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parent_node_object
seems to be unused
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
deleted
( | ||
SPDX_NAMESPACE.SpdxDocument, | ||
"LicenseRef-1", | ||
"extractedText", | ||
"licenseComment", | ||
"licenseName", | ||
["https://see.also"], | ||
), | ||
( | ||
SPDX_NAMESPACE.Package, | ||
"LicenseRef-2", | ||
"extractedText", | ||
"licenseComment", | ||
"another license", | ||
["https://see.also"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might be helpful to give a quick explanation of the issue at hand for future developers, i.e. what's the difference between the two test cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good now :)
…RIRef if no licenseId node is provided Signed-off-by: Meret Behrens <meret.behrens@tngtech.com>
Use licenseID from extracted licensing info URIRef if no licenseId node is provided.
fixes #547