Problem
The stop-loss/take-profit scenario test in tests/scenarios/test_strategy_with_stop_losses_take_profits.py is currently skipped via @unittest.skip as part of the scenario test optimization effort.
Required changes
-
Reduce execution time — Ensure the test completes within 30 seconds. Use minimal date ranges that still exercise the stop-loss and take-profit logic.
-
Use only offline test data from tests/resources/test_data/ — All data sources must reference CSV files located in tests/resources/test_data/ (or its subdirectories). The test currently uses CSVOHLCVDataProvider which is good, but ensure the referenced CSV file lives under tests/resources/test_data/.
Affected files
tests/scenarios/test_strategy_with_stop_losses_take_profits.py
Acceptance criteria
Problem
The stop-loss/take-profit scenario test in
tests/scenarios/test_strategy_with_stop_losses_take_profits.pyis currently skipped via@unittest.skipas part of the scenario test optimization effort.Required changes
Reduce execution time — Ensure the test completes within 30 seconds. Use minimal date ranges that still exercise the stop-loss and take-profit logic.
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). The test currently usesCSVOHLCVDataProviderwhich is good, but ensure the referenced CSV file lives undertests/resources/test_data/.Affected files
tests/scenarios/test_strategy_with_stop_losses_take_profits.pyAcceptance criteria
tests/resources/test_data/@unittest.skipdecorator once optimized