{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/5"},{"label":"Debuggers","url":"https://skillfed.io/packages/category/software-development-debuggers"}],"enrichment":{"capability":"A pytest plugin that replaces standard assertion failures with detailed, structured diffs powered by DeepDiff, making it easier to spot differences in complex nested data structures.","skillfed_tags":["pytest-plugin","test-debugging","diff-reporting"],"use_cases":["Debugging test failures on API responses or database records where only a few nested fields differ from expected.","Comparing large configuration dictionaries or JSON payloads where visual diff clarity matters more than raw output.","Testing mock objects with ANY placeholders or approximate float comparisons that standard assertions struggle to report clearly.","Reducing time spent reading assertion diffs in CI logs by getting a structured, path-based view of what changed.","Validating complex domain objects or data transfer objects where the structure is deeply nested and changes are subtle."],"what_it_does":"pytest-deepassert is a pytest plugin that intercepts assertion failures and replaces the default comparison output with structured, readable diffs generated by deepdiff. When you enable it with the --deepassert flag, any failed assertion on complex data structures\u2014dictionaries, lists, nested objects, custom types\u2014shows you exactly which fields differ, what values changed, and where items were added or removed, rather than dumping a wall of text that requires manual parsing.\n\nThe plugin is designed as an opt-in enhancement: it does not interfere with normal pytest behavior unless you explicitly pass --deepassert at runtime. It handles basic types (int, string, float, bool), collections (dict, list, tuple, set, frozenset), and advanced types (OrderedDict, NamedTuple, custom objects), and claims to work with pytest.approx() and mock.ANY for flexible comparisons. The implementation depends on deepdiff for the heavy lifting, pytest for the plugin interface, and typing-extensions for compatibility.","worth_installing":"Yes, with conditions. Install if you regularly debug test failures on complex nested data and want clearer diffs without rewriting assertions. The low install friction and permissive license make it a safe experiment. However, the aging maintenance status (283 days since last release, 11 stars) means the project has limited community traction and may not receive timely fixes; use it in projects where you can tolerate slower response to issues. The opt-in flag design means you can enable it selectively without affecting existing test suites."},"id":"pytest-deepassert","links":{"html":"https://skillfed.io/packages/pytest-deepassert","md":"https://skillfed.io/packages/pytest-deepassert.md","pypi":"https://pypi.org/project/pytest-deepassert/"},"maintenance":{"status":"aging"},"meta":{"latest_release":"2025-11-04","license_spdx":null,"license_treatment":"permissive","name":"pytest-deepassert","python_support":"supports_current","summary":"A pytest plugin for enhanced assertion reporting with detailed diffs"},"popularity":{"monthly_downloads":133296,"position":11522,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.0"}
