MCPcopy
hub / github.com/MinishLab/semble / test_download_error

Function test_download_error

tests/test_chunker.py:134–138  ·  view source on GitHub ↗

Test that chunk returns None when parser is not available.

()

Source from the content-addressed store, hash-verified

132
133
134def test_download_error() -> None:
135 """Test that chunk returns None when parser is not available."""
136 with patch("semble.chunking.core.get_parser", side_effect=DownloadError):
137 chunks = chunk("x = 1", "python", 10)
138 assert chunks is None
139
140
141def test_chunker_deep_string(caplog: pytest.LogCaptureFixture) -> None:

Callers

nothing calls this directly

Calls 1

chunkFunction · 0.90

Tested by

no test coverage detected