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

Lock-in Assessment

Low 5/5
Lock-in Score
5/5

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

Community Discussion

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