From 31c03cdce1509cc8f8e60fde2408c4627af079a6 Mon Sep 17 00:00:00 2001 From: gcarq Date: Wed, 8 Nov 2017 22:44:32 +0100 Subject: [PATCH] fix linter issue --- freqtrade/tests/test_main.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/freqtrade/tests/test_main.py b/freqtrade/tests/test_main.py index 61ff8c1fe..151ecaabc 100644 --- a/freqtrade/tests/test_main.py +++ b/freqtrade/tests/test_main.py @@ -81,13 +81,15 @@ def test_process_trade_handling(default_conf, ticker, limit_buy_order, mocker): validate_pairs=MagicMock(), get_ticker=ticker, buy=MagicMock(return_value='mocked_limit_buy'), - get_order=MagicMock(return_value=limit_buy_order)), + get_order=MagicMock(return_value=limit_buy_order)) init(default_conf, 'sqlite://') - assert len(Trade.query.filter(Trade.is_open.is_(True)).all()) == 0 + trades = Trade.query.filter(Trade.is_open.is_(True)).all() + assert len(trades) == 0 result = _process() assert result is True - assert len(Trade.query.filter(Trade.is_open.is_(True)).all()) == 1 + trades = Trade.query.filter(Trade.is_open.is_(True)).all() + assert len(trades) == 1 result = _process() assert result is False