Provide API client for benchmarks.
()
| 38 | |
| 39 | @pytest.fixture |
| 40 | def 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 |
nothing calls this directly
no test coverage detected