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

Method test_toml

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

Source from the content-addressed store, hash-verified

1392 d.keys(dotted=True)
1393
1394 def test_toml(self):
1395 b = Box.from_toml(filename=Path(test_root, "data", "toml_file.tml"), default_box=True)
1396 assert b.database.server == "192.168.1.1"
1397 assert b.clients.hosts == ["alpha", "omega"]
1398 assert b.database.to_toml().startswith('server = "192.168.1.1"')
1399 assert b._box_config["default_box"] is True
1400
1401 def test_parameter_pass_through(self):
1402 bx = Box.from_yaml(

Callers

nothing calls this directly

Calls 2

from_tomlMethod · 0.45
to_tomlMethod · 0.45

Tested by

no test coverage detected