Skip to content

Commit 579e96f

Browse files
committed
Improve tests
1 parent f82fb0d commit 579e96f

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

features/report-sbom.feature

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
1-
@wip
21
Feature: Create an CycloneDX sbom
32

43
*Dfetch* can generate a software Bill-of-Materials (SBOM).
54

6-
An SBOM lists the components and their supply chain relationships. Downstream
5+
This SBOM lists the components and their supply chain relationships. Downstream
76
users of the software can assess the licenses used and potential risk of dependencies.
87

98
The generated SBOM can be used as input for other tools to monitor dependencies.

tests/test_manifest.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
import pytest
1010

11-
import dfetch.manifest.manifest
1211
from dfetch import DEFAULT_MANIFEST_NAME
1312
from dfetch.manifest.manifest import (
1413
Manifest,
@@ -73,7 +72,7 @@ def test_no_projects() -> None:
7372
"""Test that manifest without projects cannot be read."""
7473

7574
with pytest.raises(KeyError):
76-
manifest = given_manifest_from_text(MANIFEST_NO_PROJECTS)
75+
given_manifest_from_text(MANIFEST_NO_PROJECTS)
7776

7877

7978
def test_no_remotes() -> None:

tests/test_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# flake8: noqa
55

66
import argparse
7-
from unittest.mock import mock_open, patch
7+
from unittest.mock import patch
88

99
import pytest
1010

0 commit comments

Comments
 (0)