Skip to content

Commit

Permalink
fix failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
timkpaine committed May 20, 2019
1 parent bc7325a commit b9d3dc6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions aat/tests/test_backtest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@ class TestBacktest:
def setup(self):
from ..config import BacktestConfig
self.config = BacktestConfig()
df = pd.DataFrame([{'volume': '100',
'close': '1',
df = pd.DataFrame([{'volume': 100.0,
'close': 1.0,
'timestamp': '1558296780000',
'exchange': 'GEMINI',
'pair': 'USDBTC'
}])
df['timestamp'] = pd.to_datetime(df['timestamp'], unit='ms')
df.set_index(['timestamp', 'pair'])
df.set_index(['timestamp', 'pair'], inplace=True)
self.test_line = df.iloc[0]

def teardown(self):
Expand Down

0 comments on commit b9d3dc6

Please sign in to comment.