Skip to content

Assertive Mock API

Assertive Mock API gives you a programmable HTTP mock server and a Python client for setting up stubs and validating request behavior in tests.

What You Get

  • A FastAPI-based mock server with scoped and global stubs.
  • A Python client to create stubs and assert traffic.
  • Docker-based deployment for local and CI usage.
flowchart LR
  Test[Test Suite] --> Client[MockApiClient]
  Client -->|create stubs/assertions| Server[Mock API Server]
  App[System Under Test] -->|HTTP request| Server
  Server -->|stubbed response| App