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

Function build_sample

src/bcf/tests/v2/test_bcf_xml.py:21–24  ·  view source on GitHub ↗
(xml_handler: XmlParserSerializer)

Source from the content-addressed store, hash-verified

19
20@pytest.fixture()
21def build_sample(xml_handler: XmlParserSerializer) -> tuple[BcfXml, TopicHandler]:
22 bcf = BcfXml.create_new("Test project", xml_handler=xml_handler)
23 orig_th = bcf.add_topic("Test topic", "Test message", "Test author", "Test type")
24 return bcf, orig_th
25
26
27def test_bcf_roundtrip(xml_handler, build_sample) -> None:

Callers

nothing calls this directly

Calls 2

create_newMethod · 0.45
add_topicMethod · 0.45

Tested by

no test coverage detected