blob: 9496bab7690bd035f5ca63bf480f496d33cdff25 (
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
import pytest
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
|