sbom-tools 0.2.0

Semantic SBOM diff and analysis tool
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from __future__ import annotations

import os

import pytest

from sbomtools import NativeLibraryNotFoundError
from sbomtools._loader import load_library


@pytest.fixture
def native_library() -> None:
    try:
        load_library()
    except NativeLibraryNotFoundError as error:
        if os.environ.get("SBOM_TOOLS_LIB_PATH"):
            pytest.fail(str(error))
        pytest.skip(str(error))