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

Function test_inline_ignores

codespell_lib/tests/test_basic.py:484–493  ·  view source on GitHub ↗
(
    tmpdir: pytest.TempPathFactory,
    capsys: pytest.CaptureFixture[str],
    content: str,
    expected_error_count: int,
)

Source from the content-addressed store, hash-verified

482 ],
483)
484def test_inline_ignores(
485 tmpdir: pytest.TempPathFactory,
486 capsys: pytest.CaptureFixture[str],
487 content: str,
488 expected_error_count: int,
489) -> None:
490 d = str(tmpdir)
491 with open(op.join(d, "bad.txt"), "w", encoding="utf-8") as f:
492 f.write(content)
493 assert cs.main(d) == expected_error_count
494
495
496def test_custom_regex(

Callers

nothing calls this directly

Calls 1

mainMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…