From 6ff0e66ddf7115a7ffc04df36d2aad299004aac8 Mon Sep 17 00:00:00 2001 From: robcaulk Date: Sat, 12 Nov 2022 11:13:31 +0100 Subject: [PATCH] ensure strat tests are updated --- tests/strategy/test_strategy_loading.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/strategy/test_strategy_loading.py b/tests/strategy/test_strategy_loading.py index 6b831c116..5fcc75026 100644 --- a/tests/strategy/test_strategy_loading.py +++ b/tests/strategy/test_strategy_loading.py @@ -34,7 +34,7 @@ def test_search_all_strategies_no_failed(): directory = Path(__file__).parent / "strats" strategies = StrategyResolver._search_all_objects(directory, enum_failed=False) assert isinstance(strategies, list) - assert len(strategies) == 11 + assert len(strategies) == 12 assert isinstance(strategies[0], dict) @@ -42,10 +42,10 @@ def test_search_all_strategies_with_failed(): directory = Path(__file__).parent / "strats" strategies = StrategyResolver._search_all_objects(directory, enum_failed=True) assert isinstance(strategies, list) - assert len(strategies) == 12 + assert len(strategies) == 13 # with enum_failed=True search_all_objects() shall find 2 good strategies # and 1 which fails to load - assert len([x for x in strategies if x['class'] is not None]) == 11 + assert len([x for x in strategies if x['class'] is not None]) == 12 assert len([x for x in strategies if x['class'] is None]) == 1