From c2deb1db255e5a091daa38460212b8a593141ef4 Mon Sep 17 00:00:00 2001 From: hroff-1902 Date: Fri, 26 Jul 2019 02:05:20 +0300 Subject: [PATCH] eliminate warnings in pytest when testing handling of the deprecated strategy interfaces --- freqtrade/tests/strategy/test_strategy.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/freqtrade/tests/strategy/test_strategy.py b/freqtrade/tests/strategy/test_strategy.py index 609cc58ff..df8c0f126 100644 --- a/freqtrade/tests/strategy/test_strategy.py +++ b/freqtrade/tests/strategy/test_strategy.py @@ -366,6 +366,7 @@ def test_strategy_override_use_sell_profit_only(caplog): ) in caplog.record_tuples +@pytest.mark.filterwarnings("ignore:deprecated") def test_deprecate_populate_indicators(result): default_location = path.join(path.dirname(path.realpath(__file__))) resolver = StrategyResolver({'strategy': 'TestStrategyLegacy', @@ -398,6 +399,7 @@ def test_deprecate_populate_indicators(result): in str(w[-1].message) +@pytest.mark.filterwarnings("ignore:deprecated") def test_call_deprecated_function(result, monkeypatch): default_location = path.join(path.dirname(path.realpath(__file__))) resolver = StrategyResolver({'strategy': 'TestStrategyLegacy',