Skip to content

Commit

Permalink
STY More PEP8 fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
twiecki committed Apr 18, 2016
1 parent 615cfe6 commit 5f44b8b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyfolio/tests/test_round_trips.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
from pyfolio.round_trips import (extract_round_trips,
add_closing_transactions,
_groupby_consecutive,
)
)


class RoundTripTestCase(TestCase):
Expand Down Expand Up @@ -46,8 +46,8 @@ class RoundTripTestCase(TestCase):
[2, 20., 'A'],
[2, 10., 'A'],
],
columns=['amount', 'price', 'symbol'],
index=dates_intraday[[0, 1, 4, 5]]),
columns=['amount', 'price', 'symbol'],
index=dates_intraday[[0, 1, 4, 5]]),
DataFrame(data=[[4, 15., 'A'],
[4, 15., 'A'],
],
Expand Down Expand Up @@ -159,7 +159,7 @@ def test_add_closing_trades(self):
index=[dates[:3]])

expected_ix = dates[:3].append(DatetimeIndex([dates[2] +
Timedelta(seconds=1)]))
Timedelta(seconds=1)]))
expected = DataFrame(data=[[2, 10, 'A'],
[-5, 10, 'A'],
[-1, 10., 'B'],
Expand Down

0 comments on commit 5f44b8b

Please sign in to comment.