{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/2"},{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/2"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance"}],"enrichment":{"capability":"Provides a pytest assertion helper to compare collections by content rather than order, useful for testing APIs that return data in arbitrary sequences.","skillfed_tags":["pytest-plugin","test-assertion","collection-comparison"],"use_cases":["Test REST API responses that return lists of objects in unpredictable order without writing custom comparison logic.","Assert nested data structures (e.g., customer records with order lists) where only some levels should ignore order.","Compare collections of dictionaries or other unhashable types where set() or sorted() approaches fail.","Verify database query results or GraphQL responses that don't guarantee result ordering.","Write readable, maintainable assertions for complex JSON payloads in integration tests."],"what_it_does":"pytest-unordered is a pytest plugin that adds an `unordered()` wrapper function for assertions that compare collection contents while ignoring element order. It solves the common testing problem where APIs return data structures (lists, tuples, nested objects) in unpredictable or arbitrary order, making naive equality assertions fragile and test code verbose.\n\nThe package shines when testing complex nested data structures: you can wrap only the parts where order doesn't matter, leaving other parts under strict order checking. It handles dictionaries, lists, tuples, and generators, and supports both container-type-strict and container-type-agnostic comparison modes. The single runtime dependency is pytest itself, making installation and integration straightforward.","worth_installing":"Yes. This is a focused, well-maintained tool that solves a real testing pain point with minimal friction. No security issues, permissive license, active development, and low dependency overhead make it a safe addition to any pytest-based test suite."},"id":"pytest-unordered","links":{"html":"https://skillfed.io/packages/pytest-unordered","md":"https://skillfed.io/packages/pytest-unordered.md","pypi":"https://pypi.org/project/pytest-unordered/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-06-16","license_spdx":null,"license_treatment":"permissive","name":"pytest-unordered","python_support":"unspecified","summary":"Test equality of unordered collections in pytest"},"popularity":{"monthly_downloads":10998579,"position":1421,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"0.8.0"}
