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

Class TestConfigBoxBool

test/test_review_fixes.py:95–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93
94
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):
102 assert ConfigBox(flag=value).bool("flag") is True

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected