mirror of
https://github.com/wassname/catalyst.git
synced 2026-07-31 12:10:31 +08:00
TST: Prevent random integer during unit test from exceeding bounds.
This commit is contained in:
@@ -101,7 +101,7 @@ def create_random_simulation_parameters():
|
||||
|
||||
random_index = random.randint(
|
||||
0,
|
||||
len(treasury_curves)
|
||||
len(treasury_curves) - 1
|
||||
)
|
||||
|
||||
start_dt = treasury_curves.keys()[random_index]
|
||||
|
||||
Reference in New Issue
Block a user