mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-06 05:14:38 +08:00
TST: Prevent dividend test from using non-trading day.
Use the next events' datetime for the transaction instead of incrementing by a calendar day.
This commit is contained in:
@@ -382,7 +382,7 @@ class TestDividendPerformance(unittest.TestCase):
|
||||
events[2].dt
|
||||
)
|
||||
|
||||
txn = create_txn(1, 10.0, -100, self.dt + oneday)
|
||||
txn = create_txn(1, 10.0, -100, events[1].dt)
|
||||
events.insert(1, txn)
|
||||
events.insert(0, dividend)
|
||||
perf_tracker = perf.PerformanceTracker(self.sim_params)
|
||||
|
||||
Reference in New Issue
Block a user