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

Method test_defaults_apply

test/test_box_defaults.py:22–26  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

20
21class TestBoxDefaults:
22 def test_defaults_apply(self):
23 b = DefaultBox()
24 assert b.missing == DefaultBox()
25 assert b._box_config["default_box"] is True
26 assert Box()._box_config["default_box"] is False
27
28 def test_explicit_option_wins(self):
29 b = DefaultBox(default_box=False)

Callers

nothing calls this directly

Calls 2

BoxClass · 0.90
DefaultBoxClass · 0.85

Tested by

no test coverage detected