{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/8"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/3"}],"enrichment":{"capability":"A pytest plugin that provides fixtures and markers to test asynchronous Tornado web applications, handling async/await and generator-based coroutine tests with built-in HTTP server and client support.","skillfed_tags":["tornado-testing","async-fixtures","pytest-plugin"],"use_cases":["Test Tornado RequestHandler classes by making HTTP requests through http_client and verifying response codes and body content.","Write async integration tests that exercise both client and server concurrently using run_sync=False to keep them on the same IOLoop.","Validate HTTPS endpoints by providing ssl_options and using https_server and https_client fixtures.","Test WebSocket handlers and other async Tornado features that require a running IOLoop and real HTTP server.","Migrate legacy Tornado test suites from older test runners to pytest while preserving async test patterns."],"what_it_does":"pytest-tornado is a pytest plugin that bridges the gap between pytest's synchronous test model and Tornado's asynchronous event loop. It provides fixtures (io_loop, http_server, http_client, base_url, http_port) and a gen_test marker that let you write tests for Tornado web applications using both generator-based coroutines (yield) and modern async/await syntax. The plugin manages the IOLoop lifecycle per test, spins up temporary HTTP/HTTPS servers, and handles timeouts automatically.\n\nYou define a Tornado application as a pytest fixture, then write test functions marked with @pytest.mark.gen_test that can yield or await HTTP requests. The plugin injects fixtures like http_client and base_url so your test can make requests to the test server and verify responses. It also supports HTTPS testing when you provide an ssl_options fixture.","worth_installing":"Yes, if you are actively testing a Tornado application and want pytest integration\u2014it eliminates boilerplate for IOLoop and server setup. However, be cautious: the project is abandoned (last release June 2020, no commits since). It works for current Tornado and pytest versions, but you should monitor compatibility and be prepared to fork or switch if breaking changes occur in either dependency. No security vulnerabilities are known."},"id":"pytest-tornado","links":{"html":"https://skillfed.io/packages/pytest-tornado","md":"https://skillfed.io/packages/pytest-tornado.md","pypi":"https://pypi.org/project/pytest-tornado/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2020-06-17","license_spdx":null,"license_treatment":"permissive","name":"pytest-tornado","python_support":"unspecified","summary":"A py.test plugin providing fixtures and markers to simplify testing of asynchronous tornado applications."},"popularity":{"monthly_downloads":378257,"position":7119,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.8.1"}
