Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_parse_bool_error():
with pytest.raises(ValueError):
parse_bool("")
def test_parse_bool_false(data):
assert parse_bool(data) is False
def test_parse_bool_true(data):
assert parse_bool(data) is True