feat: implement Textual TUI and SQLite database for sensor management
This commit is contained in:
15
tests/conftest.py
Normal file
15
tests/conftest.py
Normal file
@@ -0,0 +1,15 @@
|
||||
import os
|
||||
import sys
|
||||
from unittest.mock import MagicMock
|
||||
|
||||
# Mock environment variables required by config.py
|
||||
os.environ["MQTT_HOST"] = "localhost"
|
||||
os.environ["MQTT_PORT"] = "1883"
|
||||
os.environ["MQTT_USER"] = "user"
|
||||
os.environ["MQTT_PASSWORD"] = "password"
|
||||
|
||||
# Mock bluetooth package globally for all tests
|
||||
mock_bluetooth = MagicMock()
|
||||
mock_bluez = MagicMock()
|
||||
sys.modules["bluetooth"] = mock_bluetooth
|
||||
sys.modules["bluetooth._bluetooth"] = mock_bluez
|
||||
Reference in New Issue
Block a user