Build 060.29: implement Market Data Access and Replay
This commit is contained in:
34
app/tests/static/test_python_type_gate.py
Normal file
34
app/tests/static/test_python_type_gate.py
Normal file
@@ -0,0 +1,34 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import subprocess
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
PROJECT_ROOT = Path(__file__).resolve().parents[3]
|
||||
|
||||
|
||||
def test_python_type_gate_is_clean() -> None:
|
||||
result = subprocess.run(
|
||||
(
|
||||
sys.executable,
|
||||
"-m",
|
||||
"pyright",
|
||||
"--project",
|
||||
str(PROJECT_ROOT / "pyrightconfig.json"),
|
||||
"--warnings",
|
||||
),
|
||||
cwd=PROJECT_ROOT,
|
||||
capture_output=True,
|
||||
text=True,
|
||||
check=False,
|
||||
timeout=30.0,
|
||||
)
|
||||
|
||||
output = "\n".join(
|
||||
part.strip()
|
||||
for part in (result.stdout, result.stderr)
|
||||
if part.strip()
|
||||
)
|
||||
|
||||
assert result.returncode == 0, output
|
||||
Reference in New Issue
Block a user