Now supports both commands & fixed test
This commit is contained in:
parent
043397c5d7
commit
8c9dea988c
@ -95,10 +95,8 @@ class Telegram(RPC):
|
|||||||
CommandHandler('performance', self._performance),
|
CommandHandler('performance', self._performance),
|
||||||
CommandHandler('daily', self._daily),
|
CommandHandler('daily', self._daily),
|
||||||
CommandHandler('count', self._count),
|
CommandHandler('count', self._count),
|
||||||
#CommandHandler('reload_conf', self._reload_config),
|
CommandHandler(['reload_config', 'reload_conf'], self._reload_config),
|
||||||
CommandHandler(('reload_config' or 'reload_conf'), self._reload_config),
|
CommandHandler(['show_config', 'show_conf'], self._show_config),
|
||||||
#CommandHandler('show_conf', self._reload_config),
|
|
||||||
CommandHandler('show_config' or 'show_conf', self._show_config),
|
|
||||||
CommandHandler('stopbuy', self._stopbuy),
|
CommandHandler('stopbuy', self._stopbuy),
|
||||||
CommandHandler('whitelist', self._whitelist),
|
CommandHandler('whitelist', self._whitelist),
|
||||||
CommandHandler('blacklist', self._blacklist),
|
CommandHandler('blacklist', self._blacklist),
|
||||||
|
@ -72,10 +72,9 @@ def test_init(default_conf, mocker, caplog) -> None:
|
|||||||
assert start_polling.start_polling.call_count == 1
|
assert start_polling.start_polling.call_count == 1
|
||||||
|
|
||||||
message_str = ("rpc.telegram is listening for following commands: [['status'], ['profit'], "
|
message_str = ("rpc.telegram is listening for following commands: [['status'], ['profit'], "
|
||||||
"['balance'], ['start'], ['stop'], ['forcesell'], ['forcebuy'], "
|
"['balance'], ['start'], ['stop'], ['forcesell'], ['forcebuy'], ['performance'], "
|
||||||
"['performance'], ['daily'], ['count'], ['reload_config'], "
|
"['daily'], ['count'], ['reload_config', 'reload_conf'], ['show_config', 'show_conf'], "
|
||||||
"['show_config'], ['stopbuy'], ['whitelist'], "
|
"['stopbuy'], ['whitelist'], ['blacklist'], ['edge'], ['help'], ['version']]")
|
||||||
"['blacklist'], ['edge'], ['help'], ['version']]")
|
|
||||||
|
|
||||||
assert log_has(message_str, caplog)
|
assert log_has(message_str, caplog)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user