mirror of
https://github.com/wassname/catalyst.git
synced 2026-10-29 13:00:42 +08:00
TST: Fix expected value now that assertion is more strict
in newer pandas
This commit is contained in:
1 parent
41231c5c59
commit
ff485950b8
1 file changed
+2
-2
@@ -348,9 +348,9 @@ def handle_data(context, data):
|
||||
output = test_algo.run(source)
|
||||
self.assertIsNotNone(output)
|
||||
|
||||
history_trace = test_algo.history_trace
|
||||
df.columns = self.env.asset_finder.retrieve_all(df.columns)
|
||||
|
||||
for i, received in enumerate(history_trace[bar_count - 1:]):
|
||||
for i, received in enumerate(test_algo.history_trace[bar_count - 1:]):
|
||||
expected = df.iloc[i:i + bar_count]
|
||||
assert_frame_equal(expected, received)
|
||||
|
||||
|
||||
Reference in new issue
Block a user