Back to browse
GitHub Repository

Turn your SLOs into pytest assertions.

32 starsPython

Pytest-fastprom – Turn your SLOs into pytest assertions

by lujeni_·May 31, 2026·1 point·0 comments

AI Analysis

●●SolidSolve My ProblemBig BrainNiche Gem

Asserts SLOs against Prometheus metrics instead of flaky wall-clock timing in CI.

Strengths
  • In-process registry assertions avoid needing external metric server during test runs.
  • Regression detection saves baselines to catch performance drift between commits.
  • Isolated registry per test prevents metric leakage and issues between cases.
Weaknesses
  • Tightly coupled to FastAPI and Prometheus, limiting use for other frameworks.
  • Machine-aware baselines risk false positives when running across different CI runners.
Target Audience

Backend engineers and SREs using FastAPI and Prometheus

Similar To

pytest-benchmark · locust

Similar Projects