Skip to content

Commit 81f4f76

Browse files
committed
added fixes to test
1 parent 8aa3f0f commit 81f4f76

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_core/test_risk.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import pandas as pd
33
from src.risk_manager import RiskManager
44

5-
def test_risk_buy_logic(mock_uptrend):
5+
def test_risk_buy_logic(market_uptrend):
66
"""Verifica calcolo Size e Stop Loss per un ordine BUY."""
77
rm = RiskManager(risk_per_trade=0.02, stop_atr_multiplier=2.0)
88

@@ -36,7 +36,7 @@ def test_risk_buy_logic(mock_uptrend):
3636
assert order['stop_loss'] == 90.0 # 100 - 10
3737
assert order['take_profit'] == 120.0 # 100 + (10 * 2) Default 2R
3838

39-
def test_risk_contract_compliance(mock_uptrend):
39+
def test_risk_contract_compliance(market_uptrend):
4040
"""Verifica che l'ordine rispetti il CONTRATTO (Schema Validation)."""
4141
rm = RiskManager()
4242

0 commit comments

Comments
 (0)