Skip to main content
Run integration tests against the real FastAPI app to verify every PlatformClient endpoint and RBAC rule.
The user asks the agent to run SDK tests; pytest exercises every PlatformClient endpoint.

Quick Start

1

Simple Usage

Start the platform server, then run client tests:
2

With Configuration

Test against the in-process FastAPI app with ASGITransport — no server required:

How It Works


Test Coverage


RBAC enforcement test


Best Practices

Configure SQLite with :memory: in test fixtures for fast, isolated runs.
Use ASGITransport(app=create_app()) so tests exercise actual route logic and dependencies.
Assert 403 for non-members on projects, issues, agents, labels, and dependencies.
Use f"test-{uuid.uuid4()}@example.com" per test to avoid collisions.

Platform SDK Client

Complete PlatformClient API reference

RBAC Enforcement

Workspace membership and role checks