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

Function api_client

tests/performance/benchmark_frame_rate.py:40–49  ·  view source on GitHub ↗

Provide API client for benchmarks.

()

Source from the content-addressed store, hash-verified

38
39@pytest.fixture
40def api_client():
41 """Provide API client for benchmarks."""
42 client = SerialStudioClient()
43 client.connect()
44 yield client
45 try:
46 client.disconnect_device()
47 except Exception:
48 pass
49 client.disconnect()
50
51
52@pytest.fixture

Callers

nothing calls this directly

Calls 4

connectMethod · 0.95
disconnect_deviceMethod · 0.95
disconnectMethod · 0.95
SerialStudioClientClass · 0.90

Tested by

no test coverage detected