Skip to content

Commit 95e67f2

Browse files
michaelchuCopilot
andauthored
Update tests/test_strategies.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 1a9b598 commit 95e67f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_strategies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def test_long_put_butterfly_raw(multi_strike_data):
7272
& (results["strike_leg2"] == 212.5)
7373
& (results["strike_leg3"] == 215.0)
7474
].iloc[0]
75-
# Entry: long 210 put (1.45) + short 2x 212.5 puts (-6.10) + long 215 put (5.05) = 0.40
75+
# Entry: long 210 put (1.45) + short 2x 212.5 puts (2 * -3.05 = -6.10) + long 215 put (5.05) = 0.40
7676
assert round(row["total_entry_cost"], 2) == 0.40
7777
# Exit: all puts worthless = 0.025 + (-0.05) + 0.025 = 0.0
7878
assert round(row["total_exit_proceeds"], 2) == 0.0

0 commit comments

Comments
 (0)