From 3f65fc014eebca5ea425f75b6213e1fe70476b07 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste LE STANG Date: Tue, 2 Jan 2018 13:46:16 +0100 Subject: [PATCH] flake8 on tests --- freqtrade/tests/test_acl_pair.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/freqtrade/tests/test_acl_pair.py b/freqtrade/tests/test_acl_pair.py index 7d28b9a21..1368ac25c 100644 --- a/freqtrade/tests/test_acl_pair.py +++ b/freqtrade/tests/test_acl_pair.py @@ -16,9 +16,9 @@ def whitelist_conf(): "BTC_SWT", "BTC_BCC" ], - "pair_blacklist": [ + "pair_blacklist": [ "BTC_BLK" - ], + ], }, } @@ -36,23 +36,25 @@ def get_health(): 'IsActive': True, 'BaseVolume': 4096 } -] + ] def get_health_empty(): return [] + def test_refresh_market_pair_not_in_whitelist(mocker): conf = whitelist_conf() mocker.patch.dict('freqtrade.main._CONF', conf) mocker.patch.multiple('freqtrade.main.exchange', get_wallet_health=get_health) - refreshedwhitelist = refresh_whitelist(conf['exchange']['pair_whitelist']+ ['BTC_XXX']) + refreshedwhitelist = refresh_whitelist(conf['exchange']['pair_whitelist'] + ['BTC_XXX']) # List ordered by BaseVolume whitelist = ['BTC_ETH', 'BTC_TKN'] # Ensure all except those in whitelist are removed assert whitelist == refreshedwhitelist + def test_refresh_whitelist(mocker): conf = whitelist_conf() mocker.patch.dict('freqtrade.main._CONF', conf)