Skip to content

Commit d0dfd8e

Browse files
jawwad-aliclaude
andcommitted
test: fix article grammar in branch-name docstrings
Address review: 'an UPPERCASE acronym' -> 'an acronym in UPPERCASE' across the four branch-name case-sensitivity test docstrings (the indefinite article reads cleanly before 'acronym'). Docstring-only; no behavior change. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 57f97e1 commit d0dfd8e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tests/extensions/git/test_git_extension.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,7 @@ def test_creates_branch_sequential(self, tmp_path: Path):
300300

301301
def test_branch_name_short_word_case_sensitivity(self, tmp_path: Path):
302302
"""A short word is dropped from the derived branch name unless it appears
303-
as an UPPERCASE acronym in the description (case-sensitive, must match the
303+
as an acronym in UPPERCASE in the description (case-sensitive, must match the
304304
PowerShell twin)."""
305305
project = _setup_project(tmp_path)
306306
# lowercase "go" (<3 chars, not an uppercase acronym) is dropped
@@ -446,7 +446,7 @@ def test_creates_branch_sequential(self, tmp_path: Path):
446446

447447
def test_branch_name_short_word_case_sensitivity(self, tmp_path: Path):
448448
"""PowerShell must match the bash twin: a short word is dropped unless it
449-
appears as an UPPERCASE acronym (case-sensitive -cmatch, not -match)."""
449+
appears as an acronym in UPPERCASE (case-sensitive -cmatch, not -match)."""
450450
project = _setup_project(tmp_path)
451451
r1 = _run_pwsh(
452452
"create-new-feature-branch.ps1", project, "-Json", "-DryRun", "Add go support",

tests/test_timestamp_branches.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def test_sequential_default_with_existing_specs(self, git_repo: Path):
242242

243243
def test_branch_name_short_word_case_sensitivity(self, git_repo: Path):
244244
"""A short word is dropped from the derived branch name unless it appears
245-
as an UPPERCASE acronym in the description. The PowerShell twin must use
245+
as an acronym in UPPERCASE in the description. The PowerShell twin must use
246246
case-sensitive -cmatch to produce the same result."""
247247
r1 = run_script(git_repo, "--json", "--dry-run", "Add go support")
248248
assert r1.returncode == 0, r1.stderr
@@ -286,7 +286,7 @@ def test_powershell_scanner_uses_long_tryparse_for_large_prefixes(self):
286286
@pytest.mark.skipif(not _has_pwsh(), reason="pwsh not installed")
287287
def test_branch_name_short_word_case_sensitivity(self, ps_git_repo: Path):
288288
"""Core create-new-feature.ps1 must drop a short word unless it appears as
289-
an UPPERCASE acronym (case-sensitive -cmatch), matching the bash twin."""
289+
an acronym in UPPERCASE (case-sensitive -cmatch), matching the bash twin."""
290290
script = ps_git_repo / "scripts" / "powershell" / "create-new-feature.ps1"
291291

292292
def _run(desc: str) -> subprocess.CompletedProcess:

0 commit comments

Comments
 (0)