MCPcopy Create free account
hub / github.com/codespell-project/codespell / test_error_checking

Function test_error_checking

codespell_lib/tests/test_dictionary.py:212–221  ·  view source on GitHub ↗

Test that our error checking works.

(err: str, rep: str, match: str)

Source from the content-addressed store, hash-verified

210 ],
211)
212def test_error_checking(err: str, rep: str, match: str) -> None:
213 """Test that our error checking works."""
214 with pytest.raises(AssertionError, match=match):
215 _check_err_rep(
216 err,
217 rep,
218 (None, None),
219 "dummy",
220 (supported_languages, supported_languages),
221 )
222
223
224@pytest.mark.skipif(not spellers, reason="requires aspell-en")

Callers

nothing calls this directly

Calls 1

_check_err_repFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…