def test_boolean_property(): question = { 'id': "Test", } result = boolean_property(question) assert result["Test"]["type"] == "boolean" assert "enum" not in result["Test"]
def test_boolean_property_with_required_value(boolean): question = { 'id': "Test", 'required_value': boolean } result = boolean_property(question) assert result["Test"]["enum"] == [boolean] assert "type" not in result["Test"]