diff --git a/freqtrade/tests/test_exchange.py b/freqtrade/tests/test_exchange.py index 309ff4a5e..d0083af6a 100644 --- a/freqtrade/tests/test_exchange.py +++ b/freqtrade/tests/test_exchange.py @@ -1,4 +1,4 @@ -# pragma pylint: disable=missing-docstring +# pragma pylint: disable=missing-docstring,C0103 from unittest.mock import MagicMock import pytest @@ -33,4 +33,3 @@ def test_validate_pairs_not_compatible(default_conf, mocker): mocker.patch.dict('freqtrade.exchange._CONF', default_conf) with pytest.raises(RuntimeError, match=r'not compatible'): validate_pairs(default_conf['exchange']['pair_whitelist']) - diff --git a/freqtrade/tests/test_telegram.py b/freqtrade/tests/test_telegram.py index 63a01d429..f786a9702 100644 --- a/freqtrade/tests/test_telegram.py +++ b/freqtrade/tests/test_telegram.py @@ -1,10 +1,9 @@ -# pragma pylint: disable=missing-docstring, too-many-arguments, too-many-ancestors +# pragma pylint: disable=missing-docstring, too-many-arguments, too-many-ancestors, C0103 import re from datetime import datetime from random import randint from unittest.mock import MagicMock -import pytest from sqlalchemy import create_engine from telegram import Update, Message, Chat from telegram.error import NetworkError @@ -519,7 +518,7 @@ def test_send_msg(default_conf, mocker): init=MagicMock()) bot = MagicMock() send_msg('test', bot) - assert len(bot.method_calls) == 0 + assert not bot.method_calls bot.reset_mock() default_conf['telegram']['enabled'] = True