(fixtures)
| 364 | @pytest.mark.skipif(jsonschema is None, reason="jsonschema module is not installed") |
| 365 | @pytest.mark.e2e |
| 366 | def test_gitlab_sast_output_e2e(fixtures): |
| 367 | schema_pth = fixtures.path("gitlab-sast-schema.json") |
| 368 | |
| 369 | with open(schema_pth, "r") as fd: |
| 370 | schema = json.loads(fd.read()) |
| 371 | |
| 372 | output = fixtures.scan_test_file("flask_app.py", args=["-f", "gitlab-sast"]) |
| 373 | jsonschema.validate(output, schema) |
| 374 | |
| 375 | |
| 376 | @pytest.mark.skipif(jsonschema is None, reason="jsonschema module is not installed") |
nothing calls this directly
no test coverage detected