pytest-flask logo

pytest-flask

Pytest plugin for testing Flask applications with fixtures to access the Flask test client, application context and live server.

-

Our Verdict

Useful sugar for Flask tests, but the value is modest since Flask ships a capable test client already.

Pros

  • Flask test client fixture ready to use
  • Live server fixture for E2E scenarios
  • App context management handled
  • Thin wrapper, stays close to Flask

Cons

  • Flask is declining relative to FastAPI
  • Mostly convenience over Flask's own test client
  • Minor maintenance activity lately
Best for: Flask applications wanting pytest fixtures over unittest-style harness Not for: FastAPI or Starlette projects where httpx async clients work better

When to Use pytest-flask

Good fit if you need

  • Flask test client and application context as fixtures
  • Live server fixture for integration tests against Flask
  • Configuration overrides via app fixture in conftest.py
  • Combine Flask testing with pytest parametrize

pytest-flask Pricing

Pricing Model
free
Free Tier
Yes
Entry Price
β€”
Enterprise Available
No
Transparency Score
β€”

Beta β€” estimates may differ from actual pricing

1,000
1001K10K100K1M

Estimated Monthly Cost

$25

Estimated Annual Cost

$300

Estimates are approximate and may not reflect current pricing. Always check the official pricing page.

Project Health

C

Health Score

500 91
Bus Factor

4

Last Commit

7 days

Release Freq

N/A

Open Issues

17

Issue Response

N/A

License

MIT

Last checked: 2026-04-21

Lock-in Assessment

Low 5/5
Lock-in Score
5/5

πŸ”„ Thinking about migrating off pytest-flask?

Get an AI-drafted migration plan + a copy-paste email to pytest-flask support requesting a data export. Pick where you're moving to and tell us your context.

Looking for alternatives to pytest-flask?

Answer 4 quick questions β€” get an AI-ranked shortlist of tools that match your stack and requirements.

Open AI Tool Finder

Community Discussion

Comments powered by Giscus (GitHub Discussions). You need a GitHub account to comment.