{"id":24434,"library":"pytest-plus","title":"pytest-plus","description":"A pytest plugin that extends pytest functionality with enhanced assertions, test ordering, and fixtures. Current version is 0.8.1, with a monthly release cadence. Supports Python >=3.10.","status":"active","version":"0.8.1","language":"python","source_language":"en","source_url":"https://github.com/boxed/pytest-plus","tags":["pytest","plugin","testing","assertions"],"install":[{"cmd":"pip install pytest-plus","lang":"bash","label":"Install from PyPI"}],"dependencies":[{"reason":"Core dependency: pytest-plus is a pytest plugin.","package":"pytest","optional":false}],"imports":[{"note":"Direct import of pytest_plus won't expose the 'plus' helper; use explicit import.","wrong":"import pytest_plus","symbol":"plus","correct":"from pytest_plus import plus"}],"quickstart":{"code":"# content of test_example.py\nfrom pytest_plus import plus\n\ndef test_addition():\n    result = plus(2, 3)\n    assert result == 5, f\"Expected 5, got {result}\"","lang":"python","description":"Basic usage of the plus helper from pytest-plus. Run with: pytest"},"warnings":[{"fix":"Use 'pytest --no-header' or disable pytest-plus specific ordering with '-p no:plus'","message":"pytest-plus overrides default pytest behavior for fixture ordering. Existing tests may fail if they depend on fixture execution order.","severity":"gotcha","affected_versions":"all"},{"fix":"Replace 'from pytest_plus import assert_that' with 'from pytest_plus import plus' and update calls accordingly.","message":"In version 0.8.0, the 'assert_that' helper was renamed to 'plus' and its signature changed. Old code using 'assert_that' will break.","severity":"breaking","affected_versions":"<0.8.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Upgrade pytest-plus to >=0.8.0: pip install --upgrade pytest-plus","cause":"Older version of pytest-plus installed (pre-0.8.0) where the helper was named 'assert_that'.","error":"ImportError: cannot import name 'plus' from 'pytest_plus'"},{"fix":"Use the new API: plus(actual, expected) positional arguments.","cause":"Using old API from pre-0.8.0 where plus (formerly assert_that) accepted keyword arguments like 'expected'.","error":"TypeError: plus() got an unexpected keyword argument 'expected'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}