This will be used for testing the SBOM implementation with DNF5. Signed-off-by: Tomáš Hozza <thozza@redhat.com>
11 lines
314 B
Python
11 lines
314 B
Python
import os.path
|
|
|
|
import pytest
|
|
|
|
testutil_dnf5 = pytest.importorskip("osbuild.testutil.dnf5")
|
|
|
|
|
|
def test_depsolve_pkgset():
|
|
_, pkgset = testutil_dnf5.depsolve_pkgset([os.path.abspath("./test/data/testrepos/baseos")], ["bash"])
|
|
assert len(pkgset) == 15
|
|
assert "bash" in [pkg.get_name() for pkg in pkgset]
|