flake8 compliance

This commit is contained in:
Nullart
2018-06-14 12:37:44 +08:00
parent dc03b41c68
commit 79dd0eb104
5 changed files with 30 additions and 23 deletions

View File

@@ -87,8 +87,8 @@ def default_conf():
"stoploss": -0.10,
"disable_buy": False,
"unfilledtimeout": {
"buy":10,
"sell":30
"buy": 10,
"sell": 30
},
"bid_strategy": {
"use_book_order": False,
@@ -253,7 +253,7 @@ def limit_buy_order():
'amount': 90.99181073,
'remaining': 0.0,
'status': 'closed',
'filled':0.0
'filled': 0.0
}
@@ -269,7 +269,7 @@ def limit_buy_order_old():
'amount': 90.99181073,
'remaining': 90.99181073,
'status': 'open',
'filled':0.0
'filled': 0.0
}
@@ -285,7 +285,7 @@ def limit_sell_order_old():
'amount': 90.99181073,
'remaining': 90.99181073,
'status': 'open',
'filled':0.0
'filled': 0.0
}
@@ -301,7 +301,7 @@ def limit_buy_order_old_partial():
'amount': 90.99181073,
'remaining': 67.99181073,
'status': 'open',
'filled':0.0
'filled': 0.0
}

View File

@@ -502,7 +502,8 @@ def test_balance_fully_ask_side(mocker) -> None:
"""
Test get_target_bid() method
"""
freqtrade = get_patched_freqtradebot(mocker, {'bid_strategy': {'use_book_order':False,'book_order_top':6,'ask_last_balance': 0.0}})
param = {'use_book_order': False, 'book_order_top': 6, 'ask_last_balance': 0.0}
freqtrade = get_patched_freqtradebot(mocker, {'bid_strategy': param})
assert freqtrade.get_target_bid('ETH/BTC') >= 0.07
@@ -511,7 +512,8 @@ def test_balance_fully_last_side(mocker) -> None:
"""
Test get_target_bid() method
"""
freqtrade = get_patched_freqtradebot(mocker, {'bid_strategy': {'use_book_order':False,'book_order_top':6,'ask_last_balance': 1.0}})
param = {'use_book_order': False, 'book_order_top': 6, 'ask_last_balance': 0.0}
freqtrade = get_patched_freqtradebot(mocker, {'bid_strategy': param})
assert freqtrade.get_target_bid('ETH/BTC') >= 0.07
@@ -520,7 +522,8 @@ def test_balance_bigger_last_ask(mocker) -> None:
"""
Test get_target_bid() method
"""
freqtrade = get_patched_freqtradebot(mocker, {'bid_strategy': {'use_book_order':False,'book_order_top':6,'ask_last_balance': 1.0}})
param = {'use_book_order': False, 'book_order_top': 6, 'ask_last_balance': 0.0}
freqtrade = get_patched_freqtradebot(mocker, {'bid_strategy': param})
assert freqtrade.get_target_bid('ETH/BTC') >= 0.07