Fix minor stylistic errors

pull/8209/head
Matthias 3 years ago
parent e6766b9b82
commit 2bc9413be1

@ -1,4 +1,3 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# QTPyLib: Quantitative Trading Python Library

@ -309,7 +309,7 @@ def exchange(request, exchange_conf):
@pytest.fixture(params=EXCHANGES, scope="class")
def exchange_futures(request, exchange_conf, class_mocker):
if not EXCHANGES[request.param].get('futures') is True:
if EXCHANGES[request.param].get('futures') is not True:
yield None, request.param
else:
exchange_conf = set_test_proxy(

@ -214,12 +214,12 @@ def test_ignore_expired_candle(default_conf):
current_time = latest_date + timedelta(seconds=30 + 300)
assert not strategy.ignore_expired_candle(
assert strategy.ignore_expired_candle(
latest_date=latest_date,
current_time=current_time,
timeframe_seconds=300,
enter=True
) is True
) is not True
def test_assert_df_raise(mocker, caplog, ohlcv_history):

Loading…
Cancel
Save