test(validation): 토큰 위생 및 플랫폼 통합 검증 체계 고도화
Snapshot Admin Web Validation / validate-snapshot-admin-smoke (push) Has been cancelled
Snapshot Admin Web Validation / validate-snapshot-admin-full (push) Has been cancelled
Quant Engine CI/CD Pipeline / validate-core (pull_request) Has been cancelled
Quant Engine CI/CD Pipeline / validate-ui-and-storage (pull_request) Has been cancelled
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (pull_request) Has been cancelled
Snapshot Admin Web Validation / validate-snapshot-admin-smoke (push) Has been cancelled
Snapshot Admin Web Validation / validate-snapshot-admin-full (push) Has been cancelled
Quant Engine CI/CD Pipeline / validate-core (pull_request) Has been cancelled
Quant Engine CI/CD Pipeline / validate-ui-and-storage (pull_request) Has been cancelled
WBS-9.3 - NULL Policy CI Gate / NULL Policy Validation (pull_request) Has been cancelled
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from __future__ import annotations
|
||||
|
||||
import sys
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
@@ -88,3 +89,29 @@ def test_intended_price_must_be_positive(tmp_path):
|
||||
actual_fill_price=100,
|
||||
recorded_at="2026-06-21",
|
||||
)
|
||||
|
||||
|
||||
def test_cli_report_is_data_gated_below_minimum_sample(tmp_path):
|
||||
db_path = tmp_path / "execution_slippage.db"
|
||||
report_path = ROOT / "Temp" / "execution_slippage_report_v1.json"
|
||||
if report_path.exists():
|
||||
report_path.unlink()
|
||||
|
||||
result = subprocess.run(
|
||||
[
|
||||
sys.executable,
|
||||
"tools/evaluate_execution_slippage_v1.py",
|
||||
"--db",
|
||||
str(db_path),
|
||||
"report",
|
||||
],
|
||||
cwd=ROOT,
|
||||
check=True,
|
||||
capture_output=True,
|
||||
text=True,
|
||||
encoding="utf-8",
|
||||
)
|
||||
|
||||
assert "DATA_GATED" in result.stdout
|
||||
payload = report_path.read_text(encoding="utf-8")
|
||||
assert '"status": "DATA_GATED"' in payload
|
||||
|
||||
Reference in New Issue
Block a user