{"id":24440,"library":"pytest-warnings","title":"pytest-warnings","description":"A pytest plugin that lists Python warnings in the pytest report. Version 0.3.1. Low release cadence, last updated in 2020.","status":"maintenance","version":"0.3.1","language":"python","source_language":"en","source_url":"https://github.com/fschulze/pytest-warnings","tags":["pytest","warnings","testing"],"install":[{"cmd":"pip install pytest-warnings","lang":"bash","label":"pip"}],"dependencies":[],"imports":[{"note":"This is a pytest plugin, not a direct import. It is automatically loaded when installed, or can be explicitly declared in conftest.py.","wrong":"import pytest_warnings","symbol":"pytest-warnings","correct":"pytest_plugins = ['pytest_warnings']"}],"quickstart":{"code":"# conftest.py\npytest_plugins = ['pytest_warnings']\n\n# Then run pytest normally; warnings will appear in the report summary.","lang":"python","description":"Enable the plugin in conftest.py to include warnings in the pytest report."},"warnings":[{"fix":"Use `pytest -W error::UserWarning` or configure `filterwarnings` in pytest.ini.","message":"pytest-warnings is largely superseded by built-in '-W' flag and pytest's native warning capture. Consider using native pytest features.","severity":"deprecated","affected_versions":"all"},{"fix":"Use underscore in conftest.py: `pytest_plugins = ['pytest_warnings']`.","message":"The plugin is imported via 'pytest_warnings' (underscore) but installed as 'pytest-warnings' (hyphen).","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"search_vec":"'0.3.1':16 '2020':23 'cadenc':19 'last':20 'list':8 'low':17 'plugin':6 'pytest':2,5,13,24 'pytest-warn':1 'python':9 'releas':18 'report':14 'test':26 'updat':21 'version':15 'warn':3,10,25","created_at":"2026-05-01T08:13:05.750058+00:00","updated_at":"2026-05-01T08:13:05.750058+00:00","problems":{"verify_error":"no import statement found"},"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.3.1","cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/fschulze/pytest-warnings","docs":null,"changelog":null,"pypi":"https://pypi.org/project/pytest-warnings/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"skip","verified_at":"2026-06-29","last_verified":"2026-06-29","next_check":"2026-07-06","install_tag":null}}