Skip to content

Commit eec04ea

Browse files
committed
Fix MQTT client mock in test configuration
- Update mock import from 'paho.mqtt.client.Mosquitto' to 'paho.mqtt.client.Client' - Ensure compatibility with latest Paho MQTT client testing
1 parent 46bbc13 commit eec04ea

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def temp_config_file():
4040
@pytest.fixture
4141
def mock_mqtt_client(mocker):
4242
"""Mocks MQTT client for testing"""
43-
mock_client = mocker.patch('paho.mqtt.client.Mosquitto')
43+
mock_client = mocker.patch('paho.mqtt.client.Client')
4444
return mock_client
4545

4646
@pytest.fixture

0 commit comments

Comments
 (0)