1 parent 378253d commit 6fd90f9Copy full SHA for 6fd90f9
1 file changed
tests/test_strategy.py
@@ -289,19 +289,23 @@ def sell_exec_fn(ctx):
289
assert len(
290
list(
291
filter(
292
- lambda o: o.type == "buy"
293
- and o.symbol == "SPY"
294
- and o.shares == 10,
+ lambda o: (
+ o.type == "buy"
+ and o.symbol == "SPY"
295
+ and o.shares == 10
296
+ ),
297
portfolio.orders,
298
)
299
300
) == len(buy_dates)
301
302
303
- lambda o: o.type == "sell"
- and o.symbol == "AAPL"
304
- and o.shares == 20,
305
+ o.type == "sell"
306
+ and o.symbol == "AAPL"
307
+ and o.shares == 20
308
309
310
311
0 commit comments