Do not run tests in a production environment. It will erase the installed strategies.
To run in a dev environment:
- Copy
~/.minitrade/config.yamlto~/.minitrade/config.pytest.yaml. - Edit
config.pytest.yamlto specify different ports forbrokers.ib.gateway_admin_portandscheduler.port. - Open a shell and set up the environment variables for test IB account. Use a PAPER account.
$ export IB_TEST_USERNAME=xxxx $ export IB_TEST_PASSWORD=xxxx - Run from project root.
$ pytest tests