Added tests for the new rpc/telegram functions

This commit is contained in:
theluxaz
2021-10-28 21:39:42 +03:00
parent 21ab83163d
commit 560802c326
6 changed files with 125 additions and 244 deletions

View File

@@ -887,7 +887,7 @@ class Telegram(RPCHandler):
"""
try:
pair = None
if context.args:
if context.args and isinstance(context.args[0], str):
pair = context.args[0]
trades = self._rpc._rpc_buy_tag_performance(pair)
@@ -922,7 +922,7 @@ class Telegram(RPCHandler):
"""
try:
pair = None
if context.args:
if context.args and isinstance(context.args[0], str):
pair = context.args[0]
trades = self._rpc._rpc_sell_reason_performance(pair)
@@ -957,7 +957,7 @@ class Telegram(RPCHandler):
"""
try:
pair = None
if context.args:
if context.args and isinstance(context.args[0], str):
pair = context.args[0]
trades = self._rpc._rpc_mix_tag_performance(pair)