Skip to content

Commit

Permalink
flake8
Browse files Browse the repository at this point in the history
  • Loading branch information
dalejung committed Feb 6, 2015
1 parent 5b10b28 commit 91e5308
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions tests/test_history.py
Expand Up @@ -269,6 +269,7 @@ def test_multiple_specs_on_same_bar(self):
container.update(bar_data, third_bar_dt)
prices = container.get_history(spec, third_bar_dt)
no_fill_prices = container.get_history(no_fill_spec, third_bar_dt)
self.assertEqual(prices.values[-1], 10)
self.assertTrue(np.isnan(no_fill_prices.values[-1]),
"Last price should be np.nan")

Expand Down
5 changes: 3 additions & 2 deletions tests/test_rolling_panel.py
Expand Up @@ -91,10 +91,10 @@ def test_alignment(self, env):
)

@with_environment()
def test_alignment(self, env):
def test_get_current_multiple_call_same_tick(self, env):
"""
In old get_current, each call the get_current would copy the data. Thus
changing that object would have no side effects.
changing that object would have no side effects.
To keep the same api, make sure that the raw option returns a copy too.
"""
Expand Down Expand Up @@ -129,6 +129,7 @@ def test_alignment(self, env):
raw2 = rp.get_current(raw=True)
assert data_id(raw) != data_id(raw2)


class TestMutableIndexRollingPanel(unittest.TestCase):

def test_basics(self, window=10):
Expand Down

0 comments on commit 91e5308

Please sign in to comment.