Presume that pytest will call the cleanup call

This commit is contained in:
froggleston 2022-05-25 09:58:38 +01:00
parent 2873ca6d38
commit f5c2930889

View File

@ -12,7 +12,7 @@ from tests.conftest import get_args, patch_exchange, patched_configuration_load_
@pytest.fixture(autouse=True) @pytest.fixture(autouse=True)
def backtesting_cleanup() -> None: def entryexitanalysis_cleanup() -> None:
yield None yield None
Backtesting.cleanup() Backtesting.cleanup()
@ -103,5 +103,3 @@ def test_backtest_analysis_nomock(default_conf, mocker, caplog, testdatadir, cap
captured = capsys.readouterr() captured = capsys.readouterr()
assert 'enter_tag_long' in captured.out assert 'enter_tag_long' in captured.out
assert '34.049' in captured.out assert '34.049' in captured.out
Backtesting.cleanup()