use correct property

This commit is contained in:
Matthias 2018-07-22 14:52:58 +02:00
parent 4d864df59e
commit bd2771b8f9
2 changed files with 3 additions and 3 deletions

View File

@ -67,7 +67,7 @@ class Telegram(RPC):
self._updater: Updater = None
self._config = freqtrade.config
self._init()
if self._config.get('stake_currency', None):
if self._config.get('fiat_display_currency', None):
self._fiat_converter = CryptoToFiatConverter()
def _init(self) -> None:

View File

@ -1201,7 +1201,7 @@ def test_send_msg_unknown_type(default_conf, mocker) -> None:
def test_send_msg_buy_notification_no_fiat(default_conf, mocker) -> None:
del default_conf['stake_currency']
del default_conf['fiat_display_currency']
msg_mock = MagicMock()
mocker.patch.multiple(
'freqtrade.rpc.telegram.Telegram',
@ -1228,7 +1228,7 @@ def test_send_msg_buy_notification_no_fiat(default_conf, mocker) -> None:
def test_send_msg_sell_notification_no_fiat(default_conf, mocker) -> None:
del default_conf['stake_currency']
del default_conf['fiat_display_currency']
msg_mock = MagicMock()
mocker.patch.multiple(
'freqtrade.rpc.telegram.Telegram',