Skip to content

Commit 4ef306b

Browse files
committed
Disables black formatter for desired output to include whitespace
1 parent 99f45e8 commit 4ef306b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_optimizer.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,9 @@ def test_optimize():
99
df, week = ffbot.load(SCRAPER_FILE)
1010
assert week == 4
1111
df_opt = ffbot.optimize(df, week, TEAM, POSITIONS)
12+
# fmt: off
1213
desired_df_opt = """ Add Drop Total points Discounted points VOR
13-
0 Player 200 (WR)
14+
0 Player 200 (WR)
1415
1 <current roster> 1723.27 420.2 515.9
1516
2 Player 221 (TE) 6.11 0.58 -19.01
1617
3 Player 143 (DEF) Player 101 (QB) -10.41 2.33 -16.19
@@ -19,5 +20,6 @@ def test_optimize():
1920
6 Player 135 (K) Player 59 (RB) 9.26 0.37 -39.68
2021
7 Player 90 (WR) - Waivers (Jan 2) 9.45 3.23 17.22
2122
8 Player 132 (WR) 0.0 0.0 0.0
22-
9 Player 129 (QB) - Free Agent Player 174 (WR) 14.53 0.85 11.16""" # noqa: W291
23+
9 Player 129 (QB) - Free Agent Player 174 (WR) 14.53 0.85 11.16"""
24+
# fmt: on
2325
assert df_opt.to_string() == desired_df_opt

0 commit comments

Comments
 (0)