fix linter issue

This commit is contained in:
gcarq 2017-11-08 22:44:32 +01:00
parent a1b91ad1ea
commit 31c03cdce1

View File

@ -81,13 +81,15 @@ def test_process_trade_handling(default_conf, ticker, limit_buy_order, mocker):
validate_pairs=MagicMock(), validate_pairs=MagicMock(),
get_ticker=ticker, get_ticker=ticker,
buy=MagicMock(return_value='mocked_limit_buy'), 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://') 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() result = _process()
assert result is True 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() result = _process()
assert result is False assert result is False