fixing pep8 compliance

This commit is contained in:
Jean-Baptiste LE STANG 2018-01-13 08:19:39 +01:00
parent a0df566b2b
commit 15189c28ed
2 changed files with 2 additions and 1 deletions

View File

@ -223,7 +223,7 @@ CONF_SCHEMA = {
'type': 'object',
'properties': {
'max_open_trades': {'type': 'integer', 'minimum': 1},
'ticker_interval': {'type': 'integer', 'minimum':1, 'maximum':1440},
'ticker_interval': {'type': 'integer', 'minimum': 1, 'maximum': 1440},
'stake_currency': {'type': 'string', 'enum': ['BTC', 'ETH', 'USDT']},
'stake_amount': {'type': 'number', 'minimum': 0.0005},
'fiat_display_currency': {'type': 'string', 'enum': ['AUD', 'BRL', 'CAD', 'CHF',

View File

@ -42,6 +42,7 @@ def _clean_test_file(file: str) -> None:
if os.path.isfile(file_swp):
os.rename(file_swp, file)
def test_load_data_30min_ticker(default_conf, ticker_history, mocker, caplog):
mocker.patch('freqtrade.optimize.get_ticker_history', return_value=ticker_history)
mocker.patch.dict('freqtrade.main._CONF', default_conf)