MCPcopy Create free account
hub / github.com/cdgriffith/Box / test_from_yaml

Method test_from_yaml

test/test_box.py:449–457  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

447 assert bx.key1 == "value1"
448
449 def test_from_yaml(self):
450 yaml = YAML(typ="safe")
451 with StringIO() as sio:
452 yaml.dump(test_dict, sio)
453 data = sio.getvalue()
454 bx = Box.from_yaml(data, conversion_box=False, default_box=True)
455 assert isinstance(bx, Box)
456 assert bx.key1 == "value1"
457 assert bx.Key_2 == Box()
458
459 def test_from_yaml_box_dots_dotted_key_before_non_dotted(self):
460 """

Callers

nothing calls this directly

Calls 2

BoxClass · 0.90
from_yamlMethod · 0.45

Tested by

no test coverage detected