mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-06 06:52:20 +02:00
18 lines
603 B
Python
18 lines
603 B
Python
"""Real Chromium regressions for the corrected CodeQL data-flow contracts."""
|
|
import json
|
|
import subprocess
|
|
from pathlib import Path
|
|
|
|
|
|
def test_codeql_security_browser_contracts():
|
|
root = Path(__file__).resolve().parents[1]
|
|
result = subprocess.run(
|
|
["node", "tests/codeql_security_browser.cjs"], cwd=root,
|
|
capture_output=True, text=True, timeout=60,
|
|
)
|
|
assert result.returncode == 0, result.stdout + result.stderr
|
|
assert json.loads(result.stdout) == {
|
|
"chat": True, "markdown": True, "svg": True,
|
|
"menus": True, "admin": True, "bootstrap": True,
|
|
}
|