Flask-Testing
Unit testing for Flask
What it is and what it does
Flask-Testing is a testing library that wraps Flask's built-in test client and adds convenience methods for unit testing Flask applications. It provides utilities for setting up test fixtures, managing application context, and making assertions on HTTP responses specific to web applications.
The package is designed to reduce boilerplate when writing tests for Flask apps. However, it has been abandoned since its last release in 2020-12-24, with no active maintenance or updates to support newer Flask or Python versions. Most modern Flask projects now rely on pytest and pytest-flask, or Flask's native testing support, making this package largely superseded.
Use it for:
- Writing unit tests for Flask view functions and route handlers in legacy codebases that already depend on this library.
- Setting up test fixtures and application context for Flask integration tests in older projects.
- Making HTTP assertions on response status codes and content in Flask test suites.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides unit testing utilities and helpers for Flask applications, including test client setup, request context management, and assertion methods tailored to web testing.
No. The package is abandoned (last release 2020-12-24) and compatibility with current Flask and Python versions is uncertain. Modern Flask projects should use pytest-flask or Flask's native testing tools instead. Only consider installing if maintaining a legacy codebase that already depends on it.
Install
flask-testing on PyPI
pip
pip install flask-testinguv
uv add flask-testingpoetry
poetry add flask-testingInstalling Flask-Testing
Before you install
High install friction and abandoned maintenance status (last release 2020-12-24, last commit 2023-08-21) make this a risky choice for new projects. No runtime dependencies, but the package has not been actively maintained for years.
License in practice
BSD license is permissive and poses no restrictions on commercial or private use, modification, or redistribution.
Quickstart
pip install Flask-Testing==0.8.1
from flask_testing import FlaskTestCase
class MyTest(FlaskTestCase):
def create_app(self):
app.config['TESTING'] = True
return app
Requires Flask to be installed; compatibility with current Flask versions is uncertain given the abandoned maintenance status.
Verify before relying
- Whether the package remains compatible with current Flask versions and modern Python releases.
- Whether the testing patterns it provides are still considered best practice in the Flask ecosystem.
- What specific Flask versions this 0.8.1 release was tested against.
Package facts
| License | BSD (permissive) |
| Python support | not specified |
| Install friction | high — source build required |
| Runtime dependencies | none |
| Maintenance | abandoned — 2,059 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 676,785/month — #5,382 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: Flask-Testing-0.8.1.tar.gz
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
Flask-APIFlask-API adds browsable web interfaces and…
permissive · top 15,000 on PyPI
sqlbagsqlbag provides a collection of SQLAlchemy…
unclear · top 15,000 on PyPI
Flask-ScriptFlask-Script provides command-line interface…
permissive · top 15,000 on PyPI
Flask-LoginFlask-Login handles user session management for…
permissive · top 1,000 on PyPI
approval-utilitiesProvides utility functions and helpers for…
permissive · top 15,000 on PyPI
FlaskFlask is a lightweight WSGI web application…
permissive · top 1,000 on PyPI
Flask-WTFFlask-WTF integrates WTForms with Flask to…
permissive · top 5,000 on PyPI
APIFlaskAPIFlask is a lightweight web API framework…
permissive · top 15,000 on PyPI
Flask-InjectorIntegrates dependency injection into Flask…
permissive · top 15,000 on PyPI
Flask-SQLAlchemyFlask-SQLAlchemy integrates SQLAlchemy database…
permissive · top 1,000 on PyPI