mirror of
https://github.com/freqtrade/freqtrade.git
synced 2024-11-10 10:21:59 +00:00
Rename hyperoptresult fixture to avoid naming collision
This commit is contained in:
parent
287b43e999
commit
ef9dd0676c
|
@ -918,10 +918,10 @@ def test_start_test_pairlist(mocker, caplog, tickers, default_conf, capsys):
|
||||||
captured.out)
|
captured.out)
|
||||||
|
|
||||||
|
|
||||||
def test_hyperopt_list(mocker, capsys, caplog, hyperopt_results):
|
def test_hyperopt_list(mocker, capsys, caplog, saved_hyperopt_results):
|
||||||
mocker.patch(
|
mocker.patch(
|
||||||
'freqtrade.optimize.hyperopt_tools.HyperoptTools.load_previous_results',
|
'freqtrade.optimize.hyperopt_tools.HyperoptTools.load_previous_results',
|
||||||
MagicMock(return_value=hyperopt_results)
|
MagicMock(return_value=saved_hyperopt_results)
|
||||||
)
|
)
|
||||||
|
|
||||||
args = [
|
args = [
|
||||||
|
@ -1150,10 +1150,10 @@ def test_hyperopt_list(mocker, capsys, caplog, hyperopt_results):
|
||||||
f.unlink()
|
f.unlink()
|
||||||
|
|
||||||
|
|
||||||
def test_hyperopt_show(mocker, capsys, hyperopt_results):
|
def test_hyperopt_show(mocker, capsys, saved_hyperopt_results):
|
||||||
mocker.patch(
|
mocker.patch(
|
||||||
'freqtrade.optimize.hyperopt_tools.HyperoptTools.load_previous_results',
|
'freqtrade.optimize.hyperopt_tools.HyperoptTools.load_previous_results',
|
||||||
MagicMock(return_value=hyperopt_results)
|
MagicMock(return_value=saved_hyperopt_results)
|
||||||
)
|
)
|
||||||
|
|
||||||
args = [
|
args = [
|
||||||
|
|
|
@ -1778,7 +1778,7 @@ def open_trade():
|
||||||
|
|
||||||
|
|
||||||
@pytest.fixture
|
@pytest.fixture
|
||||||
def hyperopt_results():
|
def saved_hyperopt_results():
|
||||||
return [
|
return [
|
||||||
{
|
{
|
||||||
'loss': 0.4366182531161519,
|
'loss': 0.4366182531161519,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user