def test_invalid_schema_elements_missing(self): schema = {"type": "nothing"} validate_ui_element_schema(schema)
def test_valid_schema_with_options(self): validate_ui_element_schema(self.schema)
def test_invalid_schema_type_missing(self): schema = {"elements": [{"key": "issue-link"}]} validate_ui_element_schema(schema)
def test_invalid_schema_type_invalid(self): schema = {"elements": [{"type": "other"}]} validate_ui_element_schema(schema)
def test_invalid_schema_elements_not_array(self): schema = {"elements": {"type": "issue-link"}} validate_ui_element_schema(schema)