From 24804f066c02dc4b504b9e98473c4c56bff176ff Mon Sep 17 00:00:00 2001 From: Matthias Date: Wed, 3 May 2023 20:15:26 +0200 Subject: [PATCH] Update test comment, uncomment last test section --- tests/data/test_entryexitanalysis.py | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/tests/data/test_entryexitanalysis.py b/tests/data/test_entryexitanalysis.py index 17c1ff3d9..367ad8394 100644 --- a/tests/data/test_entryexitanalysis.py +++ b/tests/data/test_entryexitanalysis.py @@ -209,9 +209,8 @@ def test_backtest_analysis_nomock(default_conf, mocker, caplog, testdatadir, tmp assert 'enter_tag_long_a' in captured.out assert 'enter_tag_long_b' not in captured.out - # test rejected - how to mock this? - # args = get_args(base_args + ['--rejected-signals']) - # start_analysis_entries_exits(args) - # captured = capsys.readouterr() - # assert 'Rejected Signals:' in captured.out - # assert False + # Due to the backtest mock, there's no rejected signals generated. + args = get_args(base_args + ['--rejected-signals']) + start_analysis_entries_exits(args) + captured = capsys.readouterr() + assert 'no rejected signals' in captured.out