Test that chunk returns None when parser is not available.
()
| 132 | |
| 133 | |
| 134 | def 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 | |
| 141 | def test_chunker_deep_string(caplog: pytest.LogCaptureFixture) -> None: |