BLE Support

This commit is contained in:
Wolfgang Nagele
2024-01-07 20:32:14 +01:00
parent 70bb58b8ce
commit 0a8a193081
9 changed files with 224 additions and 92 deletions

View File

@@ -1,17 +0,0 @@
"""Meshtastic unit tests for ble_interface.py"""
from unittest.mock import patch
import pytest
from ..ble_interface import BLEInterface
@pytest.mark.unit
@patch("platform.system", return_value="Linux")
def test_BLEInterface(mock_platform):
"""Test that we can instantiate a BLEInterface"""
iface = BLEInterface("foo", debugOut=True, noProto=True)
iface.close()
mock_platform.assert_called()