diff --git a/codespell_lib/tests/test_basic.py b/codespell_lib/tests/test_basic.py index 9c35ce091dc..22f8f934683 100644 --- a/codespell_lib/tests/test_basic.py +++ b/codespell_lib/tests/test_basic.py @@ -159,6 +159,16 @@ def test_basic( assert cs.main(tmp_path) == 0 +def test_default_word_parsing( + tmp_path: Path, + capsys: pytest.CaptureFixture[str], +) -> None: + fname = tmp_path / "parsing" + with fname.open("a") as f: + f.write("`abandonned`\n") + assert cs.main(fname) == 1, "bad" + + def test_bad_glob( tmp_path: Path, capsys: pytest.CaptureFixture[str],