Back to browse
Generate pytest API tests from an OpenAPI spec

Generate pytest API tests from an OpenAPI spec

by testforge·Mar 16, 2026·1 point·1 comment

AI Analysis

MidShip It

OpenAPI to pytest generator when Schemathesis and FastAPI already do this.

Strengths
  • One-click demo with real APIs like Stripe and Petstore for testing.
  • Generates both happy-path and negative validation tests automatically.
Weaknesses
  • No differentiation from Schemathesis, Hypothesis, or built-in FastAPI testing.
  • Single-page utility without test orchestration or CI integration features.
Target Audience

Backend developers, QA engineers, API teams

Similar To

Schemathesis · FastAPI TestClient · Dredd

Post Description

Hi HN,

I built a tool that generates pytest API tests from an OpenAPI spec.

You can paste an OpenAPI URL and it generates a baseline pytest suite that hits each endpoint.

Live demo: https://openapi-test-generator.vercel.app/

GitHub: https://github.com/ryancrandall801/openapi-test-generator

Similar Projects