Load correct exchange class

closes #2371
This commit is contained in:
Matthias
2019-10-14 11:36:42 +02:00
parent 4228137dff
commit 76ad5bea0e
4 changed files with 15 additions and 2 deletions

View File

@@ -142,6 +142,12 @@ def test_exchange_resolver(default_conf, mocker, caplog):
assert not log_has_re(r"No .* specific subclass found. Using the generic class instead.",
caplog)
# Test mapping
exchange = ExchangeResolver('binanceus', default_conf).exchange
assert isinstance(exchange, Exchange)
assert isinstance(exchange, Binance)
assert not isinstance(exchange, Kraken)
def test_validate_order_time_in_force(default_conf, mocker, caplog):
caplog.set_level(logging.INFO)