| Conditions | 2 |
| Total Lines | 8 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | # Copyright 2022, Red Hat, Inc. |
||
| 16 | @pytest.mark.integration_test |
||
| 17 | def test_json_structure_with_schema(): |
||
| 18 | json_schema = None |
||
| 19 | with open(PATH_TO_JSON_SCHEMA, "r", encoding="utf-8") as schema_file: |
||
| 20 | json_schema = json.load(schema_file) |
||
| 21 | json_gen = JSONReportGenerator(get_parser(PATH_TO_ARF)) |
||
| 22 | json_data = json_gen.generate_report(DebugSetting()).read().decode("utf-8") |
||
| 23 | validate(json.loads(json_data), json_schema) |
||
| 24 | |||
| 31 |