-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refine the CycloneDX properties implementation #637
Signed-off-by: Thomas Druez <[email protected]>
- Loading branch information
Showing
9 changed files
with
50 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1149,14 +1149,14 @@ def test_scanpipe_pipes_update_or_create_package(self): | |
p1 = Project.objects.create(name="Analysis") | ||
package = pipes.update_or_create_package(p1, package_data1) | ||
self.assertEqual("pkg:deb/debian/[email protected]?arch=all", package.purl) | ||
self.assertEqual("", package.primary_language) | ||
self.assertEqual("bash", package.primary_language) | ||
self.assertEqual(datetime.date(1999, 10, 10), package.release_date) | ||
|
||
updated_data = dict(package_data1) | ||
updated_data["primary_language"] = "Python" | ||
updated_data["notice_text"] = "NOTICE" | ||
updated_package = pipes.update_or_create_package(p1, updated_data) | ||
self.assertEqual("pkg:deb/debian/[email protected]?arch=all", updated_package.purl) | ||
self.assertEqual("Python", updated_package.primary_language) | ||
self.assertEqual("NOTICE", updated_package.notice_text) | ||
self.assertEqual(package.pk, updated_package.pk) | ||
|
||
resource1 = CodebaseResource.objects.create(project=p1, path="filename.ext") | ||
|