diff --git a/freqtrade/exchange/kucoin.py b/freqtrade/exchange/kucoin.py index 5d818f6a2..2884669a6 100644 --- a/freqtrade/exchange/kucoin.py +++ b/freqtrade/exchange/kucoin.py @@ -1,4 +1,4 @@ -""" Kucoin exchange subclass """ +"""Kucoin exchange subclass.""" import logging from typing import Dict @@ -9,9 +9,9 @@ logger = logging.getLogger(__name__) class Kucoin(Exchange): - """ - Kucoin exchange class. Contains adjustments needed for Freqtrade to work - with this exchange. + """Kucoin exchange class. + + Contains adjustments needed for Freqtrade to work with this exchange. Please note that this exchange is not included in the list of exchanges officially supported by the Freqtrade development team. So some features diff --git a/freqtrade/exchange/okex.py b/freqtrade/exchange/okex.py index 5ab6f3147..ec31be3a3 100644 --- a/freqtrade/exchange/okex.py +++ b/freqtrade/exchange/okex.py @@ -8,9 +8,9 @@ logger = logging.getLogger(__name__) class Okex(Exchange): - """ - Okex exchange class. Contains adjustments needed for Freqtrade to work - with this exchange. + """Okex exchange class. + + Contains adjustments needed for Freqtrade to work with this exchange. """ _ft_has: Dict = { diff --git a/tests/exchange/test_exchange.py b/tests/exchange/test_exchange.py index 8a8569dc4..ced7d8d36 100644 --- a/tests/exchange/test_exchange.py +++ b/tests/exchange/test_exchange.py @@ -238,9 +238,9 @@ def test_validate_order_time_in_force(default_conf, mocker, caplog): (2.9999, 4, 0.005, 2.995), ]) def test_amount_to_precision(default_conf, mocker, amount, precision_mode, precision, expected): - ''' + """ Test rounds down - ''' + """ markets = PropertyMock(return_value={'ETH/BTC': {'precision': {'amount': precision}}}) @@ -279,9 +279,7 @@ def test_amount_to_precision(default_conf, mocker, amount, precision_mode, preci ]) def test_price_to_precision(default_conf, mocker, price, precision_mode, precision, expected): - ''' - Test price to precision - ''' + """Test price to precision""" markets = PropertyMock(return_value={'ETH/BTC': {'precision': {'price': precision}}}) exchange = get_patched_exchange(mocker, default_conf, id="binance")