(self, model_with_annotations)
| 199 | assert result["view"] == "floorplan" |
| 200 | |
| 201 | def test_png_custom_size(self, model_with_annotations): |
| 202 | model, _ = model_with_annotations |
| 203 | svg = plot(model, output_format="svg") |
| 204 | has_groups = b"<g " in svg or b"<g>" in svg |
| 205 | if not has_groups: |
| 206 | pytest.skip("Model produces empty SVG") |
| 207 | result = plot(model, output_format="png", png_width=512, png_height=512) |
| 208 | assert isinstance(result, bytes) |
| 209 | assert result[:4] == PNG_MAGIC |
| 210 | |
| 211 | |
| 212 | class TestCLI: |