()
| 408 | |
| 409 | |
| 410 | def test_invalid_translation_options(): |
| 411 | translator = _get_transliterator() |
| 412 | with pytest.raises(ValueError, match="is greater than"): |
| 413 | translator.translate_batch( |
| 414 | [["آ", "ت", "ز", "م", "و", "ن"]], |
| 415 | min_decoding_length=10, |
| 416 | max_decoding_length=5, |
| 417 | ) |
| 418 | |
| 419 | |
| 420 | def test_invalid_translation_options_async(): |
nothing calls this directly
no test coverage detected