mirror of
https://github.com/freqtrade/freqtrade.git
synced 2025-11-29 08:33:07 +00:00
update tests
This commit is contained in:
@@ -298,6 +298,8 @@ def test_store_backtest_candles(testdatadir, mocker):
|
|||||||
assert dump_mock.call_count == 3
|
assert dump_mock.call_count == 3
|
||||||
assert isinstance(dump_mock.call_args_list[0][0][0], Path)
|
assert isinstance(dump_mock.call_args_list[0][0][0], Path)
|
||||||
assert str(dump_mock.call_args_list[0][0][0]).endswith("_signals.pkl")
|
assert str(dump_mock.call_args_list[0][0][0]).endswith("_signals.pkl")
|
||||||
|
assert str(dump_mock.call_args_list[1][0][0]).endswith("_rejected.pkl")
|
||||||
|
assert str(dump_mock.call_args_list[2][0][0]).endswith("_exited.pkl")
|
||||||
|
|
||||||
dump_mock.reset_mock()
|
dump_mock.reset_mock()
|
||||||
# mock file exporting
|
# mock file exporting
|
||||||
@@ -307,6 +309,9 @@ def test_store_backtest_candles(testdatadir, mocker):
|
|||||||
assert isinstance(dump_mock.call_args_list[0][0][0], Path)
|
assert isinstance(dump_mock.call_args_list[0][0][0], Path)
|
||||||
# result will be testdatadir / testresult-<timestamp>_signals.pkl
|
# result will be testdatadir / testresult-<timestamp>_signals.pkl
|
||||||
assert str(dump_mock.call_args_list[0][0][0]).endswith("_signals.pkl")
|
assert str(dump_mock.call_args_list[0][0][0]).endswith("_signals.pkl")
|
||||||
|
assert str(dump_mock.call_args_list[1][0][0]).endswith("_rejected.pkl")
|
||||||
|
assert str(dump_mock.call_args_list[2][0][0]).endswith("_exited.pkl")
|
||||||
|
|
||||||
dump_mock.reset_mock()
|
dump_mock.reset_mock()
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user