-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Description
Describe the bug
When running tests the random seed generation is causing trouble ValueError: Seed must be between 0 and 2**32 - 1 Also it's not for the new test I am adding for #723 , I tested multiple other tests and this issue is same throughout.
Expected behavior
It should be properly generating seeds under a certain range as described in this issue.
Code sample
If you've setup the repository
cd tests
pytests <test-file-name>
Operating system, python version, PyPortfolioOpt version
Windows 11, python@latest, PyPortfolioOpt@latest
Additional context
It's working when tried to run using
pytest test/<test-file-name> -p no:randomly
As -p no:randomly stops it to generate seeds randomly
Proof:

As of now I don't know how to fix it, but will understand and solve the issue and submit a PR, if anyone else' have expertise please feel free to open a PR!!