Lines Matching full:schema
31 @pytest.mark.parametrize("filename, schema",
32 [("testsuite_correct_schema.yaml", "testsuite-schema.yaml"),
33 ("platform_correct_schema.yaml", "platform-schema.yaml")])
34 def test_correct_schema(filename, schema, test_data): argument
35 """ Test to validate the testsuite schema"""
37 schema = scl.yaml_load(ZEPHYR_BASE +'/scripts/schemas/twister//' + schema)
38 data = TwisterConfigParser(filename, schema)
43 @pytest.mark.parametrize("filename, schema",
44 [("testsuite_incorrect_schema.yaml", "testsuite-schema.yaml"),
45 ("platform_incorrect_schema.yaml", "platform-schema.yaml")])
46 def test_incorrect_schema(filename, schema, test_data): argument
47 """ Test to validate the exception is raised for incorrect testsuite schema"""
49 schema = scl.yaml_load(ZEPHYR_BASE +'/scripts/schemas/twister//' + schema)
51 scl.yaml_load_verify(filename, schema)
52 assert str(exception.value) == "Schema validation failed"
57 schema = scl.yaml_load(Path(ZEPHYR_BASE) / "scripts/schemas/twister/testsuite-schema.yaml")
58 data = TwisterConfigParser(filename, schema)