blob: 5191fc3eabe1c11479806327388bb0a52fd19674 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
"""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
|