mirror of
https://github.com/openai/codex-security.git
synced 2026-11-21 02:12:29 +08:00
* docs: document Python module and function contracts * refactor: simplify scan recovery and reporting * test(deep-scan): restore the coordinator stop error import
10 lines
380 B
Python
10 lines
380 B
Python
"""Require at least one test case and zero skipped cases in reports/python.xml."""
|
|
|
|
from xml.etree import ElementTree
|
|
|
|
report = ElementTree.parse("reports/python.xml")
|
|
if report.find(".//testcase") is None:
|
|
raise SystemExit("No native platform tests ran")
|
|
if report.find(".//testcase/skipped") is not None:
|
|
raise SystemExit("Native platform tests must run without skips")
|