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

Method test_numeric_keys

test/test_comments.py:93–96  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

91 assert bx == {}
92
93 def test_numeric_keys(self):
94 bx = Box.from_yaml("1: one # first\n2.5: x\n")
95 assert bx.get_comment(1) == {"eol": "first"}
96 assert bx.to_yaml() == "1: one # first\n2.5: x\n"
97
98 def test_files(self, tmp_path):
99 path = tmp_path / "config.yaml"

Callers

nothing calls this directly

Calls 3

from_yamlMethod · 0.45
get_commentMethod · 0.45
to_yamlMethod · 0.45

Tested by

no test coverage detected