diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-01 17:13:00 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-01 17:13:00 +0900 |
| commit | a6bf0057d32df7ed0a1d6ec6d19daf74a0de5c0f (patch) | |
| tree | b1a080386dcb106fb5404e0100ab5a0e8703e8d0 /tests/edge_cases/test_zero_volume.py | |
| parent | 66368d580cf569b50a33e438f2287a977e6fc704 (diff) | |
feat: medium priority improvements
- Add 30 edge case tests (zero volume, empty data, extreme values,
strategy reset, notifier failures)
- Fix VWAP division by zero on zero-price candles
- Add DB transaction rollback on errors + transaction() context manager
- Add parameter validation to all 7 strategies with 41 validation tests
- Fix lint issues across test files
Diffstat (limited to 'tests/edge_cases/test_zero_volume.py')
| -rw-r--r-- | tests/edge_cases/test_zero_volume.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/edge_cases/test_zero_volume.py b/tests/edge_cases/test_zero_volume.py index 0aefa07..71a1d71 100644 --- a/tests/edge_cases/test_zero_volume.py +++ b/tests/edge_cases/test_zero_volume.py @@ -17,6 +17,7 @@ from strategies.rsi_strategy import RsiStrategy def _candle(close: str, volume: str = "0", idx: int = 0) -> Candle: base = datetime(2025, 1, 1, tzinfo=timezone.utc) from datetime import timedelta + return Candle( symbol="BTCUSDT", timeframe="1h", |
