blob: 7bd450f7f0e0557d85037dbb9707c3a82bf997ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
"""Tests for the plugin loader."""
from pathlib import Path
from strategy_engine.plugin_loader import load_strategies
STRATEGIES_DIR = Path(__file__).parent.parent / "strategies"
def test_load_strategies_finds_rsi_and_grid():
strategies = load_strategies(STRATEGIES_DIR)
names = [s.name for s in strategies]
assert "rsi" in names
assert "grid" in names
def test_load_strategies_skips_base():
strategies = load_strategies(STRATEGIES_DIR)
names = [s.name for s in strategies]
assert "base" not in names
|