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

Method test_explicit_option_wins

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

Source from the content-addressed store, hash-verified

26 assert Box()._box_config["default_box"] is False
27
28 def test_explicit_option_wins(self):
29 b = DefaultBox(default_box=False)
30 with pytest.raises(AttributeError):
31 b.missing
32
33 def test_nested_boxes_keep_class_and_options(self):
34 b = DefaultBox({"a": {"b": {"c": 1}}, "l": [{"x": 1}]})

Callers

nothing calls this directly

Calls 1

DefaultBoxClass · 0.85

Tested by

no test coverage detected