pytest-tornasync
py.test plugin for testing Python 3.5+ Tornado code
Decision gist · record as of 2026-08-14
Yes, if you are testing a Tornado application on Python 3.5–3.7 with pytest and Tornado 5.x. The plugin is stable and has no known vulnerabilities. However, do not use it if you need support for newer Tornado or pytest releases, as the project is abandoned and will not receive updates. For new projects or modern Tornado versions, verify compatibility first or consider alternatives.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Requires Python 3.5+ and Tornado 5.0 or newer.
- Tests must be defined as native coroutines (async def) to be recognized by the plugin.
- Low install friction with a pure-Python wheel.
License · maintenance · safety
permissive license (permissive) — MIT license (permissive) means you can use this freely in commercial and open-source projects with minimal restrictions.
last release 2019-07-15 (2587 days) · last repo commit 2023-05-24 · 24 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 324,443 downloads/mo, #7,594 on PyPI
Alternatives
Verify before relying
pip install pytest-tornasync
import pytest
import tornado.web
@pytest.fixture
def app():
return tornado.web.Application([(r"/", MyHandler)])
async def test_app(http_server_client):
resp = await http_server_client.fetch('/')
assert resp.code == 200- Compatibility with Tornado versions released after 2019 and pytest versions beyond those tested in the last release.
- Whether the plugin works correctly with modern Python 3.8+ async/await semantics and event loop changes.
What it is and what it does
pytest-tornasync is a pytest plugin that simplifies testing of Tornado web applications by allowing you to write test functions as plain async def coroutines without decorator boilerplate. Instead of using @pytest.mark.gen_test, you simply name your test function with test_ prefix and define it as async, and the plugin automatically runs it in the Tornado IOLoop.
The plugin provides fixtures for common testing scenarios: http_server_client for making requests to a Tornado app under test, http_client for arbitrary HTTP requests, http_server_port for the test server's port, and io_loop for direct IOLoop access. You define an app fixture that returns your tornado.web.Application, and the plugin handles the rest. It targets Tornado 5.0+ and Python 3.5+, though the project is no longer actively maintained.
Use it for
- Write async test functions for Tornado web handlers without @pytest.mark.gen_test decorators.
- Test HTTP endpoints of a Tornado application using http_server_client fixture.
- Verify async coroutine behavior in isolation with direct IOLoop access via the io_loop fixture.
- Make external HTTP requests in tests using the http_client fixture.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you are testing a Tornado application on Python 3.5–3.7 with pytest and Tornado 5.x.
The plugin is stable and has no known vulnerabilities. However, do not use it if you need support for newer Tornado or pytest releases, as the project is abandoned and will not receive updates. For new projects or modern Tornado versions, verify compatibility first or consider alternatives.
Install
pytest-tornasync on PyPI
Before you install
Low install friction with a pure-Python wheel. However, the package is abandoned—last release was 2019-07-15 and last commit 2023-05-24—so it will not receive bug fixes or updates for newer Tornado or pytest versions.
Requires Python 3.5+ and Tornado 5.0 or newer. Tests must be defined as native coroutines (async def) to be recognized by the plugin.
License in practice
MIT license (permissive) means you can use this freely in commercial and open-source projects with minimal restrictions.
Quickstart
pip install pytest-tornasync
import pytest
import tornado.web
@pytest.fixture
def app():
return tornado.web.Application([(r"/", MyHandler)])
async def test_app(http_server_client):
resp = await http_server_client.fetch('/')
assert resp.code == 200
Verify before relying
- Compatibility with Tornado versions released after 2019 and pytest versions beyond those tested in the last release.
- Whether the plugin works correctly with modern Python 3.8+ async/await semantics and event loop changes.
Package facts
| License | permissive license permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | 2 packagespytesttornado |
| Maintenance | Abandoned 2,587 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 324,443 / month, #7,594 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 3 - AlphaEnvironment :: ConsoleFramework :: PytestIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.5Programming Language :: Python :: 3.6Programming Language :: Python :: 3.7Topic :: Software Development :: Testing |
Evidence: pytest_tornasync-0.6.0.post2-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pytest tornado async testing”
- pytest-tornasyncA pytest plugin that runs native async test functions (defined with…
- pytest-tornadoA pytest plugin that provides fixtures and markers to test…
- async-stripeProvides an asynchronous wrapper around the Stripe Python library,…
Give your agent the search over MCP, or paste the wish link into any chat.
More Testing packages
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
virtualenv creates isolated Python environments where packages can be installed independently without affecting the system Python or other projects.
Coverage.py measures which lines of Python code are executed during test runs, reporting coverage percentages and identifying untested code paths.
Install it if you want to measure test completeness or enforce coverage thresholds in your project.
pytest-asyncio is a pytest plugin that enables writing and running async test functions using the asyncio library, allowing developers to await code directly within test cases.
Install it if you write tests for any asyncio-based code.
A pytest plugin that generates test reports in Common Test Report Format (CTRF) as JSON, compatible with pytest-xdist and pytest-playwright for distributed and browser-based testing.
Install it if you need CTRF-formatted test output for CI/CD integration or cross-tool reporting.
See also pytest-tornado · tornado · pytest-aio · pytest-twisted · terminado · threadloop · pytest-docker · pytest-redis · pytest-markdown-docs · pytest-aiohttp