Test that chunk returns None when parser is not available.
()
| 125 | |
| 126 | |
| 127 | def test_chunks_is_none() -> None: |
| 128 | """Test that chunk returns None when parser is not available.""" |
| 129 | with patch("semble.chunking.core._cached_get_parser", lambda x: None): |
| 130 | chunks = chunk("x = 1", "python", 10) |
| 131 | assert chunks is None |
| 132 | |
| 133 | |
| 134 | def test_download_error() -> None: |