MCPcopy Create free account
hub / github.com/IfcOpenShell/IfcOpenShell / test_png_custom_size

Method test_png_custom_size

src/ifcquery/tests/test_plot.py:201–209  ·  view source on GitHub ↗
(self, model_with_annotations)

Source from the content-addressed store, hash-verified

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
212class TestCLI:

Callers

nothing calls this directly

Calls 2

plotFunction · 0.90
skipMethod · 0.80

Tested by

no test coverage detected