Skip to content

Commit 56fff44

Browse files
committed
Fix test_trade_price_update
1 parent 7b21eff commit 56fff44

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

tests/app/algorithm/test_trade_price_update.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,6 @@ def apply_strategy(self, context, market_data):
1717
pass
1818

1919

20-
class StrategyTwo(TradingStrategy):
21-
time_unit = TimeUnit.SECOND
22-
interval = 2
23-
market_data_sources = ["BTC/EUR-ohlcv", "BTC/EUR-ticker"]
24-
25-
def apply_strategy(self, context, market_data):
26-
pass
27-
28-
2920
class Test(TestCase):
3021

3122
def setUp(self) -> None:
@@ -103,7 +94,6 @@ def test_trade_recent_price_update(self):
10394
)
10495
algorithm = Algorithm()
10596
algorithm.add_strategy(StrategyOne)
106-
algorithm.add_strategy(StrategyTwo)
10797
app.add_algorithm(algorithm)
10898
app.set_config(
10999
"DATE_TIME", datetime(2023, 11, 2, 7, 59, tzinfo=timezone.utc)
@@ -120,7 +110,6 @@ def test_trade_recent_price_update(self):
120110
strategy_orchestration_service = app.algorithm\
121111
.strategy_orchestrator_service
122112
self.assertTrue(strategy_orchestration_service.has_run("StrategyOne"))
123-
self.assertTrue(strategy_orchestration_service.has_run("StrategyTwo"))
124113

125114
# Check that the last reported price is updated
126115
trade = app.context.get_trades()[0]

0 commit comments

Comments
 (0)