add fixes for random test failures

This commit is contained in:
Matthias
2022-09-26 08:11:00 +00:00
parent 041258a549
commit a1a62681bf
3 changed files with 9 additions and 8 deletions

View File

@@ -6,6 +6,7 @@ import pandas as pd
import pytest
from freqtrade.enums import ExitType, RunMode
from freqtrade.optimize.backtesting import Backtesting
from freqtrade.optimize.hyperopt import Hyperopt
from tests.conftest import patch_exchange
@@ -28,6 +29,13 @@ def hyperopt_conf(default_conf):
return hyperconf
@pytest.fixture(autouse=True)
def backtesting_cleanup() -> None:
yield None
Backtesting.cleanup()
@pytest.fixture(scope='function')
def hyperopt(hyperopt_conf, mocker):