Vladmodels Katya Y117 47 154 ★ Recent
pytest test_vladmodel_parser.py If you just need the area without the extra ceremony:
@property def area_mm2(self) -> int: """Surface area in square millimetres (width × height).""" return self.width_mm * self.height_mm vladmodels katya y117 47 154
@property def dimensions_str(self) -> str: """Human‑readable dimensions, e.g. “47 mm × 154 mm”.""" return f"self.width_mm mm × self.height_mm} mm" pytest test_vladmodel_parser
area = parse_vladmodels_spec("vladmodels katya y117 47 154").area_mm2 print(area) # → 7238 str: """Human‑readable dimensions
def test_invalid_brand(): with pytest.raises(ValueError, match="Brand must be 'vladmodels'"): parse_vladmodels_spec("othermodels katya y117 47 154")