MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / test_ble_driver_status

Function test_ble_driver_status

tests/integration/test_api_drivers.py:126–135  ·  view source on GitHub ↗

Validate BLE driver status query.

(api_client, clean_state)

Source from the content-addressed store, hash-verified

124
125@pytest.mark.integration
126def test_ble_driver_status(api_client, clean_state):
127 """Validate BLE driver status query."""
128 if not api_client.command_exists("io.ble.getStatus"):
129 pytest.skip("BLE driver commands not available")
130
131 api_client.command("io.setBusType", {"busType": 2})
132
133 status = api_client.command("io.ble.getStatus")
134 assert "adapterAvailable" in status
135 assert "operatingSystemSupported" in status
136
137
138@pytest.mark.integration

Callers

nothing calls this directly

Calls 2

command_existsMethod · 0.80
commandMethod · 0.80

Tested by

no test coverage detected