Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Rename test_definitions to utils #373

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion test/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from cve_bin_tool.cli import main
from cve_bin_tool.extractor import Extractor

from .test_definitions import (
from .utils import (
TempDirTest,
download_file,
CURL_7_20_0_RPM,
Expand Down
2 changes: 1 addition & 1 deletion test/test_extract.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from zipfile import ZipFile, ZipInfo
from io import BytesIO
from cve_bin_tool.extractor import Extractor
from .test_definitions import download_file, CURL_7_20_0_URL, VMWARE_CAB, TMUX_DEB
from .utils import download_file, CURL_7_20_0_URL, VMWARE_CAB, TMUX_DEB
from cve_bin_tool.util import inpath

if sys.version_info.major == 3 and sys.version_info.minor >= 3:
Expand Down
2 changes: 1 addition & 1 deletion test/test_scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

from cve_bin_tool.cvedb import CVEDB
from cve_bin_tool.cli import Scanner, InvalidFileError
from .test_definitions import download_file
from .utils import download_file

BINARIES_PATH = os.path.join(os.path.abspath(os.path.dirname(__file__)), "binaries")

Expand Down
2 changes: 1 addition & 1 deletion test/test_definitions.py → test/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"""
Resource definitions and helper functions for tests.
Resource definitions and helper utilities for tests.
"""
import shutil
import tempfile
Expand Down