flake8 3.7.1 fixes

This commit is contained in:
Samuel Husso
2019-01-31 07:51:03 +02:00
parent 576d9b8f5c
commit e3ae8d3f69
7 changed files with 11 additions and 11 deletions

View File

@@ -663,8 +663,8 @@ def test_backtest_alternate_buy_sell(default_conf, fee, mocker):
def test_backtest_multi_pair(default_conf, fee, mocker):
def evaluate_result_multi(results, freq, max_open_trades):
# Find overlapping trades by expanding each trade once per period
# and then counting overlaps
# Find overlapping trades by expanding each trade once per period
# and then counting overlaps
dates = [pd.Series(pd.date_range(row[1].open_time, row[1].close_time, freq=freq))
for row in results[['open_time', 'close_time']].iterrows()]
deltas = [len(x) for x in dates]

View File

@@ -117,7 +117,7 @@ def test_fiat_convert_get_price(mocker):
assert fiat_convert._pairs[0].crypto_symbol == 'BTC'
assert fiat_convert._pairs[0].fiat_symbol == 'USD'
assert fiat_convert._pairs[0].price == 28000.0
assert fiat_convert._pairs[0]._expiration is not 0
assert fiat_convert._pairs[0]._expiration != 0
assert len(fiat_convert._pairs) == 1
# Verify the cached is used

View File

@@ -364,7 +364,7 @@ def test_deprecate_populate_indicators(result):
in str(w[-1].message)
with warnings.catch_warnings(record=True) as w:
# Cause all warnings to always be triggered.
# Cause all warnings to always be triggered.
warnings.simplefilter("always")
resolver.strategy.advise_buy(indicators, 'ETH/BTC')
assert len(w) == 1