def test_schema(): assert AutotoolsPlugin.get_schema() == { "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "additionalProperties": False, "properties": { "autotools-configure-parameters": { "type": "array", "uniqueItems": True, "items": { "type": "string" }, "default": [], } }, }
def test_schema(self): schema = AutotoolsPlugin.get_schema() self.assertThat( schema, Equals({ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "additionalProperties": False, "properties": { "configflags": { "type": "array", "minitems": 1, "uniqueItems": True, "items": { "type": "string" }, "default": [], } }, }), )