Tests use pytest with respx for HTTP mocking and inline-snapshot for assertions.
MockContext helper (tests/conftest.py):
ctx = MockContext(api_key="...", integration_id="...")- creates SDK instancectx.mock_endpoint(method, path, response)- mocks HTTP endpointsctx.get_last_request()- captures request details (path, headers, body)ctx.clear()- resets mocks between calls
Running tests:
mise run testoruv run pytest tests/ -vmise run test:update- update snapshots- Use
snapshot(...)frominline-snapshotfor assertions