Skip to content

test_sbom: replace make_sbom_ctx with config files #1042

@tiran

Description

@tiran

The test helper make_sbom_ctx uses internal, private implementation detail settings._package_settings. It creates SbomSettings on the fly, too. Instead SBOM tests should use a similar approach as tmp_context. The fixture loads settings from tests/testdata/context tree.

How about you introduce a sbom_context fixture and add config files to tests/testdata/sbom-context ?

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions