Exemplo n.º 1
0
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": [],
            }
        },
    }
Exemplo n.º 2
0
    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": [],
                    }
                },
            }),
        )