Fix tests
This commit is contained in:
parent
14110bd5ca
commit
4a5ed5a273
@ -103,8 +103,8 @@ def test_backtest_analysis_nomock(default_conf, mocker, caplog, testdatadir, tmp
|
|||||||
|
|
||||||
# test group 0 and indicator list
|
# test group 0 and indicator list
|
||||||
args = get_args(base_args +
|
args = get_args(base_args +
|
||||||
['--analysis-groups', '0',
|
['--analysis-groups', "0",
|
||||||
'--indicator-list', 'close,rsi,profit_abs']
|
'--indicator-list', "close", "rsi", "profit_abs"]
|
||||||
)
|
)
|
||||||
start_analysis_entries_exits(args)
|
start_analysis_entries_exits(args)
|
||||||
captured = capsys.readouterr()
|
captured = capsys.readouterr()
|
||||||
@ -128,7 +128,7 @@ def test_backtest_analysis_nomock(default_conf, mocker, caplog, testdatadir, tmp
|
|||||||
assert '47.0996' in captured.out
|
assert '47.0996' in captured.out
|
||||||
|
|
||||||
# test group 1
|
# test group 1
|
||||||
args = get_args(base_args + ['--analysis-groups', '1'])
|
args = get_args(base_args + ['--analysis-groups', "1"])
|
||||||
start_analysis_entries_exits(args)
|
start_analysis_entries_exits(args)
|
||||||
captured = capsys.readouterr()
|
captured = capsys.readouterr()
|
||||||
assert 'enter_tag_long_a' in captured.out
|
assert 'enter_tag_long_a' in captured.out
|
||||||
@ -141,7 +141,7 @@ def test_backtest_analysis_nomock(default_conf, mocker, caplog, testdatadir, tmp
|
|||||||
assert '0' in captured.out
|
assert '0' in captured.out
|
||||||
|
|
||||||
# test group 2
|
# test group 2
|
||||||
args = get_args(base_args + ['--analysis-groups', '2'])
|
args = get_args(base_args + ['--analysis-groups', "2"])
|
||||||
start_analysis_entries_exits(args)
|
start_analysis_entries_exits(args)
|
||||||
captured = capsys.readouterr()
|
captured = capsys.readouterr()
|
||||||
assert 'enter_tag_long_a' in captured.out
|
assert 'enter_tag_long_a' in captured.out
|
||||||
@ -156,7 +156,7 @@ def test_backtest_analysis_nomock(default_conf, mocker, caplog, testdatadir, tmp
|
|||||||
assert '2.5' in captured.out
|
assert '2.5' in captured.out
|
||||||
|
|
||||||
# test group 3
|
# test group 3
|
||||||
args = get_args(base_args + ['--analysis-groups', '3'])
|
args = get_args(base_args + ['--analysis-groups', "3"])
|
||||||
start_analysis_entries_exits(args)
|
start_analysis_entries_exits(args)
|
||||||
captured = capsys.readouterr()
|
captured = capsys.readouterr()
|
||||||
assert 'LTC/BTC' in captured.out
|
assert 'LTC/BTC' in captured.out
|
||||||
@ -171,7 +171,7 @@ def test_backtest_analysis_nomock(default_conf, mocker, caplog, testdatadir, tmp
|
|||||||
assert '2' in captured.out
|
assert '2' in captured.out
|
||||||
|
|
||||||
# test group 4
|
# test group 4
|
||||||
args = get_args(base_args + ['--analysis-groups', '4'])
|
args = get_args(base_args + ['--analysis-groups', "4"])
|
||||||
start_analysis_entries_exits(args)
|
start_analysis_entries_exits(args)
|
||||||
captured = capsys.readouterr()
|
captured = capsys.readouterr()
|
||||||
assert 'LTC/BTC' in captured.out
|
assert 'LTC/BTC' in captured.out
|
||||||
|
Loading…
Reference in New Issue
Block a user