MCPcopy Create free account
hub / github.com/NTNU-IHB/PythonFMU / test_Real_to_xml

Function test_Real_to_xml

pythonfmu/tests/test_variables.py:215–221  ·  view source on GitHub ↗
(name, start)

Source from the content-addressed store, hash-verified

213 ("real_another_name", 22.),
214])
215def test_Real_to_xml(name, start):
216 r = Real(name, start)
217 xml = r.to_xml()
218 children = list(xml)
219 assert len(children) == 1
220 if start is not None:
221 assert children[0].attrib['start'] == f"{start:.16g}"
222
223
224@pytest.mark.parametrize("name,start", [

Callers

nothing calls this directly

Calls 2

to_xmlMethod · 0.95
RealClass · 0.90

Tested by

no test coverage detected