Skip to content

Commit 6fd90f9

Browse files
committed
Fix formatting
1 parent 378253d commit 6fd90f9

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

tests/test_strategy.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -289,19 +289,23 @@ def sell_exec_fn(ctx):
289289
assert len(
290290
list(
291291
filter(
292-
lambda o: o.type == "buy"
293-
and o.symbol == "SPY"
294-
and o.shares == 10,
292+
lambda o: (
293+
o.type == "buy"
294+
and o.symbol == "SPY"
295+
and o.shares == 10
296+
),
295297
portfolio.orders,
296298
)
297299
)
298300
) == len(buy_dates)
299301
assert len(
300302
list(
301303
filter(
302-
lambda o: o.type == "sell"
303-
and o.symbol == "AAPL"
304-
and o.shares == 20,
304+
lambda o: (
305+
o.type == "sell"
306+
and o.symbol == "AAPL"
307+
and o.shares == 20
308+
),
305309
portfolio.orders,
306310
)
307311
)

0 commit comments

Comments
 (0)