diff --git a/src/paho/mqtt/enums.py b/src/paho/mqtt/enums.py index daa3aec8..617b0e2f 100644 --- a/src/paho/mqtt/enums.py +++ b/src/paho/mqtt/enums.py @@ -1,7 +1,6 @@ import enum -# Error values class MQTTErrorCode(enum.IntEnum): MQTT_ERR_AGAIN = -1 MQTT_ERR_SUCCESS = 0 @@ -46,7 +45,8 @@ class MessageType(enum.IntEnum): DISCONNECT = 0xE0 AUTH = 0xF0 -class PahoLogLevel(enum.IntEnum): + +class LogLevel(enum.IntEnum): MQTT_LOG_INFO = 0x01 MQTT_LOG_NOTICE = 0x02 MQTT_LOG_WARNING = 0x04 diff --git a/tests/test_client.py b/tests/test_client.py index a4fe359f..f7cfb6df 100644 --- a/tests/test_client.py +++ b/tests/test_client.py @@ -318,7 +318,7 @@ def callback2(client, userdata, msg): assert userdata['callback2'] == 2 -class Test_compatibility: +class TestCompatibility: """ Some tests for backward compatibility """