tests: FX verdict at the 1.0975 fallback pin
ci/woodpecker/push/woodpecker Pipeline was canceled

This commit is contained in:
inference-bot committed 2026-11-27 18:04:00 +00:00
1 parent 9ab8156da2
commit 0e53c330e1
1 file changed
+4 -4
+4 -4
View File
@@ -1,8 +1,8 @@
import os, sys import os, sys
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
import app.main as m import app.main as m
v=m._fx_verdict(1.16); assert v["alert"] is False, v v=m._fx_verdict(1.0975); assert v["alert"] is False, v
v=m._fx_verdict(1.20); assert v["alert"] is True and v["drift_pct"] > 0, v v=m._fx_verdict(1.13); assert v["alert"] is True and v["drift_pct"] > 0, v
v=m._fx_verdict(1.10); assert v["alert"] is True and v["drift_pct"] < 0, v v=m._fx_verdict(1.07); assert v["alert"] is True and v["drift_pct"] < 0, v
v=m._fx_verdict(1.157); assert v["alert"] is False, v # 0.26% drift v=m._fx_verdict(1.0995); assert v["alert"] is False, v # 0.18% drift
print("FX VERDICT OK: thresholds and signs behave") print("FX VERDICT OK: thresholds and signs behave")