From 0338da2b674e3f960fd026485a9ddbb2648dff30 Mon Sep 17 00:00:00 2001 From: Corey Oordt Date: Wed, 14 Aug 2024 09:09:57 -0500 Subject: [PATCH] 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. --- tests/test_cli/test_bump.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test_cli/test_bump.py b/tests/test_cli/test_bump.py index e52383b9..2afe3a49 100644 --- a/tests/test_cli/test_bump.py +++ b/tests/test_cli/test_bump.py @@ -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", "") @@ -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):