Skip to content

Commit

Permalink
test: add individualized test cases for merge
Browse files Browse the repository at this point in the history
  • Loading branch information
CBeck-96 committed Dec 19, 2024
1 parent e770c50 commit 04f0c93
Show file tree
Hide file tree
Showing 3 changed files with 786 additions and 23 deletions.
22 changes: 0 additions & 22 deletions tests/auxiliary/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,25 +92,3 @@ def _recurse(d: dict) -> t.Optional[dict]:
return None

return _recurse(haystack)


def create_test_component(name: str, version: str = "1.0.0") -> dict:
components_list: list[dict] = []
return {
"name": name,
"version": "1.0.0",
"bom-ref": name,
"components": components_list,
"type": "library",
"supplier": {"name": "Company Legal"},
"group": "com.company.governing",
"copyright": "Company Legal 2022, all rights reserved",
}


def create_components(list_of_names: list[str]) -> dict:
components: dict[str, dict] = {}
for name in list_of_names:
components[name] = create_test_component(name)

return components
Loading

0 comments on commit 04f0c93

Please sign in to comment.