-
Notifications
You must be signed in to change notification settings - Fork 93
Description
Problem
The README example scenario test in tests/scenarios/test_readme_example.py is currently skipped via @unittest.skip as part of the scenario test optimization effort.
Required changes
-
Reduce execution time — The test dynamically extracts and runs strategy code from README.md, including a vector backtest over a 1.5-year range. Use a shorter date range (e.g. 60–90 days) to keep execution under 30 seconds.
-
Use only offline test data from
tests/resources/test_data/— All data sources must reference CSV files located intests/resources/test_data/(or its subdirectories). Tests should not depend on data files scattered acrosstests/resources/data/ortests/resources/market_data_sources_for_testing/. This ensures tests are self-contained, reproducible, and don't break when external data files are reorganized.
Affected files
tests/scenarios/test_readme_example.py
Acceptance criteria
- Test runs in under 30 seconds
- Test uses data exclusively from
tests/resources/test_data/ - Remove the
@unittest.skipdecorator once optimized - Test passes on both macOS and Ubuntu CI runners