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
Use in-memory database for speed
Use in-memory database for speed
Configure SQLite with
:memory: in test fixtures for fast, isolated runs.Test against the real FastAPI app
Test against the real FastAPI app
Use
ASGITransport(app=create_app()) so tests exercise actual route logic and dependencies.Verify RBAC on every workspace route
Verify RBAC on every workspace route
Assert 403 for non-members on projects, issues, agents, labels, and dependencies.
Isolate test data with unique emails
Isolate test data with unique emails
Use
f"test-{uuid.uuid4()}@example.com" per test to avoid collisions.Related
Platform SDK Client
Complete PlatformClient API reference
RBAC Enforcement
Workspace membership and role checks

