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

Method test_false_values

test/test_review_fixes.py:97–98  ·  view source on GitHub ↗
(self, value)

Source from the content-addressed store, hash-verified

95class TestConfigBoxBool:
96 @pytest.mark.parametrize("value", ["off", "OFF", " Off ", "no", "false", "0", "n", "f", ""])
97 def test_false_values(self, value):
98 assert ConfigBox(flag=value).bool("flag") is False
99
100 @pytest.mark.parametrize("value", ["on", "yes", "true", "1", "y", "t", "anything"])
101 def test_true_values(self, value):

Callers

nothing calls this directly

Calls 2

ConfigBoxClass · 0.90
boolMethod · 0.80

Tested by

no test coverage detected