Skip to content

Commit

Permalink
Fixed terminology in tests
Browse files Browse the repository at this point in the history
Updated test parameter and assertion messages to use "version component" instead of "version part" for clarity and consistency. This change affects the test cases that detect bad or missing version inputs.
  • Loading branch information
coordt committed Aug 14, 2024
1 parent b7f9a1a commit 0338da2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_cli/test_bump.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,11 @@ def test_non_scm_operations_if_scm_not_installed(tmp_path: Path, monkeypatch, ru
@pytest.mark.parametrize(
["version_part"],
[
param("charlie", id="bad_version_part"),
param("", id="missing_version_part"),
param("charlie", id="bad_version_component"),
param("", id="missing_version_component"),
],
)
def test_detects_bad_or_missing_version_part(version_part: str, tmp_path: Path, monkeypatch, runner):
def test_detects_bad_or_missing_version_component(version_part: str, tmp_path: Path, monkeypatch, runner):
"""It properly detects bad or missing version part."""
# Arrange
monkeypatch.setenv("PATH", "")
Expand All @@ -217,7 +217,7 @@ def test_detects_bad_or_missing_version_part(version_part: str, tmp_path: Path,

# Assert
assert result.exception is not None
assert "Unknown version part:" in result.stdout
assert "Unknown version component:" in result.stdout


def test_ignores_missing_files_with_option(tmp_path, fixtures_path, runner):
Expand Down

0 comments on commit 0338da2

Please sign in to comment.