Skip to content

Commit

Permalink
Rename yaml_file_type.py to yaml_file_types.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathan-eq committed Sep 20, 2023
1 parent d1f04f0 commit 80d157a
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion komodo/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
)
from komodo.shebang import fixup_python_shebangs
from komodo.shell import pushd, shell
from komodo.yaml_file_type import YamlFile
from komodo.yaml_file_types import YamlFile


def create_enable_scripts(komodo_prefix: str, komodo_release: str) -> None:
Expand Down
2 changes: 1 addition & 1 deletion komodo/fetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
strip_version,
)
from komodo.shell import pushd, shell
from komodo.yaml_file_type import YamlFile
from komodo.yaml_file_types import YamlFile


def eprint(*args, **kwargs):
Expand Down
2 changes: 1 addition & 1 deletion komodo/lint_package_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import argparse

from komodo.yaml_file_type import YamlFile
from komodo.yaml_file_types import YamlFile

VALID_VISIBILITY = ["public", "private"]
VALID_IMPORTANCE = ["low", "medium", "high"]
Expand Down
2 changes: 1 addition & 1 deletion komodo/show_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

import yaml

from komodo.yaml_file_type import ManifestFile
from komodo.yaml_file_types import ManifestFile


def get_release() -> str:
Expand Down
2 changes: 1 addition & 1 deletion komodo/snyk_reporting.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from snyk.managers import OrganizationManager
from snyk.models import Vulnerability

from komodo.yaml_file_type import ReleaseDir, ReleaseFile, YamlFile
from komodo.yaml_file_types import ReleaseDir, ReleaseFile, YamlFile

_CONSOLE_VULNERABILITY_FORMAT = """\t{id}
\t\tPackage: {package}
Expand Down
File renamed without changes.
6 changes: 3 additions & 3 deletions tests/test_show_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,13 @@ def test_get_version_with_filepath(mock_version_manifest):
the file directly.
Note that the file loading _and validation_ is handled by
komodo.yaml_file_type.ManifestFile, hence the different args for `open()`.
komodo.yaml_file_types.ManifestFile, hence the different args for `open()`.
"""
fname = "/foo/bar/komodo-release-0.0.1-py38/komodo-release-0.0.1-py38"
args = parse_args(["foo", "--manifest-file", fname])
assert get_version(args.package, manifest=args.manifest_file) == "1.2.3"

# Goes through argparse.FileType via komodo.yaml_file_type.ManifestFile.
# Goes through argparse.FileType via komodo.yaml_file_types.ManifestFile.
mock_version_manifest.assert_called_once_with(fname, "r", -1, None, None)


Expand All @@ -95,7 +95,7 @@ def test_get_version_fails_with_release_file(mock_release_file):
_ = parse_args(["foo", "--manifest-file", fname])
assert "does not appear to be a manifest file" in str(exception_info.value)

# Goes through argparse.FileType via komodo.yaml_file_type.ManifestFile.
# Goes through argparse.FileType via komodo.yaml_file_types.ManifestFile.
mock_release_file.assert_called_once_with(fname, "r", -1, None, None)


Expand Down

0 comments on commit 80d157a

Please sign in to comment.