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

Function build_sample

src/bcf/tests/v3/test_bcf_xml.py:21–25  ·  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 ext = mdl.Extensions(topic_types=mdl.ExtensionsTopicTypes(topic_type=["Test type"]))
23 bcf = BcfXml.create_new("Test project", extensions=ext, xml_handler=xml_handler)
24 orig_th = bcf.add_topic("Test topic", "Test message", "Test author", "Test type")
25 return bcf, orig_th
26
27
28def 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