Fix tests
This commit is contained in:
parent
77c367ad1d
commit
6cc98c1ea9
@ -143,7 +143,7 @@ def test_pair_data_filename():
|
|||||||
|
|
||||||
|
|
||||||
def test_pair_trades_filename():
|
def test_pair_trades_filename():
|
||||||
fn = pair_trades_filename(Path('freqtrade/hello/world'), 'ETH/BTC', '5m')
|
fn = pair_trades_filename(Path('freqtrade/hello/world'), 'ETH/BTC')
|
||||||
assert isinstance(fn, Path)
|
assert isinstance(fn, Path)
|
||||||
assert fn == Path('freqtrade/hello/world/ETH_BTC-trades.json')
|
assert fn == Path('freqtrade/hello/world/ETH_BTC-trades.json')
|
||||||
|
|
||||||
|
@ -1453,13 +1453,17 @@ def test_merge_ft_has_dict(default_conf, mocker):
|
|||||||
assert ex._ft_has == Exchange._ft_has_default
|
assert ex._ft_has == Exchange._ft_has_default
|
||||||
|
|
||||||
ex = Kraken(default_conf)
|
ex = Kraken(default_conf)
|
||||||
assert ex._ft_has == Exchange._ft_has_default
|
assert ex._ft_has != Exchange._ft_has_default
|
||||||
|
assert ex._ft_has['trades_pagination'] == 'id'
|
||||||
|
assert ex._ft_has['trades_pagination_arg'] == 'since'
|
||||||
|
|
||||||
# Binance defines different values
|
# Binance defines different values
|
||||||
ex = Binance(default_conf)
|
ex = Binance(default_conf)
|
||||||
assert ex._ft_has != Exchange._ft_has_default
|
assert ex._ft_has != Exchange._ft_has_default
|
||||||
assert ex._ft_has['stoploss_on_exchange']
|
assert ex._ft_has['stoploss_on_exchange']
|
||||||
assert ex._ft_has['order_time_in_force'] == ['gtc', 'fok', 'ioc']
|
assert ex._ft_has['order_time_in_force'] == ['gtc', 'fok', 'ioc']
|
||||||
|
assert ex._ft_has['trades_pagination'] == 'id'
|
||||||
|
assert ex._ft_has['trades_pagination_arg'] == 'fromId'
|
||||||
|
|
||||||
conf = copy.deepcopy(default_conf)
|
conf = copy.deepcopy(default_conf)
|
||||||
conf['exchange']['_ft_has_params'] = {"DeadBeef": 20,
|
conf['exchange']['_ft_has_params'] = {"DeadBeef": 20,
|
||||||
|
Loading…
Reference in New Issue
Block a user