mirror of
https://github.com/freqtrade/freqtrade.git
synced 2026-01-20 05:50:36 +00:00
A few more minor fixes
This commit is contained in:
@@ -219,7 +219,7 @@ class Telegram(RPCHandler):
|
|||||||
raise OperationalException(err_msg)
|
raise OperationalException(err_msg)
|
||||||
else:
|
else:
|
||||||
self._keyboard = cust_keyboard
|
self._keyboard = cust_keyboard
|
||||||
logger.info("using custom keyboard from config.json: {self._keyboard}")
|
logger.info(f"using custom keyboard from config.json: {self._keyboard}")
|
||||||
|
|
||||||
def _init_telegram_app(self):
|
def _init_telegram_app(self):
|
||||||
return Application.builder().token(self._config["telegram"]["token"]).build()
|
return Application.builder().token(self._config["telegram"]["token"]).build()
|
||||||
|
|||||||
@@ -223,7 +223,7 @@ def test_extract_data_and_train_model_Classifiers(mocker, freqai_conf, model):
|
|||||||
model_file_extension = ".zip"
|
model_file_extension = ".zip"
|
||||||
else:
|
else:
|
||||||
raise Exception(
|
raise Exception(
|
||||||
f"Unsupported model type: {freqai.dd.model_type}," f" can't assign model_file_extension"
|
f"Unsupported model type: {freqai.dd.model_type}, can't assign model_file_extension"
|
||||||
)
|
)
|
||||||
|
|
||||||
assert Path(
|
assert Path(
|
||||||
|
|||||||
@@ -114,7 +114,7 @@ def test_fetch_pairlist_timeout_keep_last_pairlist(mocker, rpl_config, caplog):
|
|||||||
pairlist_url = rpl_config["pairlists"][0]["pairlist_url"]
|
pairlist_url = rpl_config["pairlists"][0]["pairlist_url"]
|
||||||
pairs, _time_elapsed = remote_pairlist.fetch_pairlist()
|
pairs, _time_elapsed = remote_pairlist.fetch_pairlist()
|
||||||
|
|
||||||
assert log_has(f"Error: Was not able to fetch pairlist from: " f"{pairlist_url}", caplog)
|
assert log_has(f"Error: Was not able to fetch pairlist from: {pairlist_url}", caplog)
|
||||||
assert log_has("Keeping last fetched pairlist", caplog)
|
assert log_has("Keeping last fetched pairlist", caplog)
|
||||||
assert pairs == ["BTC/USDT", "ETH/USDT", "LTC/USDT"]
|
assert pairs == ["BTC/USDT", "ETH/USDT", "LTC/USDT"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user