mirror of
https://github.com/wassname/catalyst.git
synced 2026-06-28 01:44:29 +08:00
TST: Fixes broken test_close_position_event
This commit is contained in:
@@ -1937,7 +1937,9 @@ class TestPerformanceTracker(unittest.TestCase):
|
||||
|
||||
check_perf_tracker_serialization(tracker)
|
||||
|
||||
def test_close_position_event(self):
|
||||
@with_environment()
|
||||
def test_close_position_event(self, env=None):
|
||||
env.update_asset_finder(identifiers=[1, 2])
|
||||
pt = perf.PositionTracker()
|
||||
dt = pd.Timestamp("1984/03/06 3:00PM")
|
||||
pos1 = perf.Position(1, amount=np.float64(120.0),
|
||||
|
||||
Reference in New Issue
Block a user