Skip to content

Commit 0338da2

Browse files
committed
Fixed terminology in tests
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.
1 parent b7f9a1a commit 0338da2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_cli/test_bump.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -195,11 +195,11 @@ def test_non_scm_operations_if_scm_not_installed(tmp_path: Path, monkeypatch, ru
195195
@pytest.mark.parametrize(
196196
["version_part"],
197197
[
198-
param("charlie", id="bad_version_part"),
199-
param("", id="missing_version_part"),
198+
param("charlie", id="bad_version_component"),
199+
param("", id="missing_version_component"),
200200
],
201201
)
202-
def test_detects_bad_or_missing_version_part(version_part: str, tmp_path: Path, monkeypatch, runner):
202+
def test_detects_bad_or_missing_version_component(version_part: str, tmp_path: Path, monkeypatch, runner):
203203
"""It properly detects bad or missing version part."""
204204
# Arrange
205205
monkeypatch.setenv("PATH", "")
@@ -217,7 +217,7 @@ def test_detects_bad_or_missing_version_part(version_part: str, tmp_path: Path,
217217

218218
# Assert
219219
assert result.exception is not None
220-
assert "Unknown version part:" in result.stdout
220+
assert "Unknown version component:" in result.stdout
221221

222222

223223
def test_ignores_missing_files_with_option(tmp_path, fixtures_path, runner):

0 commit comments

Comments
 (0)