Fix codestyle
This commit is contained in:
@@ -167,7 +167,7 @@ def test_get_start_ts_from_timerange(mocker) -> None:
|
||||
|
||||
start = get_start_ts_from_timerange(((None, 'line'), None, -200), '5m')
|
||||
assert start == (1367900664 - 5 * 200 * 60) * 1000
|
||||
|
||||
|
||||
|
||||
def test_download_pairs_exception(ticker_history, mocker, caplog) -> None:
|
||||
mocker.patch('freqtrade.optimize.__init__.get_ticker_history', return_value=ticker_history)
|
||||
|
@@ -93,7 +93,8 @@ def test_parse_timerange_incorrect() -> None:
|
||||
|
||||
assert (('date', None), 1274486400, None) == Arguments.parse_timerange('20100522-')
|
||||
assert ((None, 'date'), None, 1274486400) == Arguments.parse_timerange('-20100522')
|
||||
assert (('date', 'date'), 1274486400, 1438214400) == Arguments.parse_timerange('20100522-20150730')
|
||||
timerange = Arguments.parse_timerange('20100522-20150730')
|
||||
assert timerange == (('date', 'date'), 1274486400, 1438214400)
|
||||
|
||||
with pytest.raises(Exception, match=r'Incorrect syntax.*'):
|
||||
Arguments.parse_timerange('-')
|
||||
|
Reference in New Issue
Block a user