This sets up a framework for testing examples in CI.
We don't always want to run the example files unaltered. As a couple of examples, they may have components that we do not expect to work in CI (like running a dashboard) or they may execute trades in a loop that has a large number of iterations. To allow us to test the files while skipping certain lines, this test uses Python's ast to parse the data and throw out any unwanted lines.
The test itself is an adaptation of a previous test that was used for example notebooks. The notebook portion could be reintegrated in order to test the tutorial.ipynb file.
This sets up a framework for testing examples in CI.
We don't always want to run the example files unaltered. As a couple of examples, they may have components that we do not expect to work in CI (like running a dashboard) or they may execute trades in a loop that has a large number of iterations. To allow us to test the files while skipping certain lines, this test uses Python's
ast
to parse the data and throw out any unwanted lines.The test itself is an adaptation of a previous test that was used for example notebooks. The notebook portion could be reintegrated in order to test the
tutorial.ipynb
file.