Vladmodels Katya Y117 47 154 -
def test_non_numeric(): with pytest.raises(ValueError, match="must be integer numbers"): parse_vladmodels_spec("vladmodels katya y117 forty seven 154") Run with:
try: width = int(width_str) height = int(height_str) except ValueError as exc: raise ValueError( f"Width and height must be integer numbers; got 'width_str' and 'height_str'" ) from exc vladmodels katya y117 47 154
Parameters ---------- spec: str Raw specification text. def test_non_numeric(): with pytest
import pytest from vladmodel_parser import parse_vladmodels_spec, VladModel def test_non_numeric(): with pytest.raises(ValueError