skillfed

Flask-Testing

Unit testing for Flask

flask-testing v0.8.1 676.8K downloads/30d#5,382 on PyPI501
Permissive license BSD Abandoned released

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-testing

uv

uv add flask-testing

poetry

poetry add flask-testing

Installing 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

Development Status :: 4 - BetaEnvironment :: Web EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: BSD LicenseOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3Topic :: Internet :: WWW/HTTP :: Dynamic ContentTopic :: Software Development :: Libraries :: Python Modules

Tags

flask unit testingflask test clientflask testing utilitiesweb app testing helpersflask assertion methods
abandonedlegacy-testing

More Python Modules packages