{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/6"},{"label":"Quality Assurance","url":"https://skillfed.io/packages/category/software-development-quality-assurance/4"}],"enrichment":{"capability":"Provides stand-alone assertion functions for Python that work outside unittest.TestCase, suitable for test cases, mocks, fakes, and implementations with customizable failure messages.","skillfed_tags":["testing","assertions","unittest-alternative"],"use_cases":["Write assertions in test classes that don't inherit from unittest.TestCase.","Add rich assertion checks to mock and fake object implementations.","Use assertions in production code as a more readable alternative to the assert statement.","Customize assertion failure messages with format strings for clearer test output.","Build custom assertion functions by extending the library's assertion patterns."],"what_it_does":"asserts is a lightweight library of assertion functions designed to work independently of unittest.TestCase. Instead of inheriting from TestCase to get assertion methods, you import assertion functions directly\u2014useful in test classes that don't derive from TestCase, in mock and fake implementations, or as a richer alternative to Python's built-in assert statement. The library includes common assertions like assert_equal, assert_true, and assert_raises, all with customizable failure messages and PEP 8 compliance.\n\nThe package trades away a couple of TestCase features (custom assertion classes and addTypeEqualityFunc support) for cleaner separation of concerns: your test runner handles test execution, and assertion functions handle validation. It depends only on typing-extensions and requires Python 3.10 or later.","worth_installing":"Yes, if you need stand-alone assertions outside unittest.TestCase. The package is actively maintained, has low install friction, and carries no known vulnerabilities. However, verify the license before use in proprietary contexts, and note that it is classified as Alpha\u2014suitable for testing and development but not yet marked as stable."},"id":"asserts","links":{"html":"https://skillfed.io/packages/asserts","md":"https://skillfed.io/packages/asserts.md","pypi":"https://pypi.org/project/asserts/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-11-17","license_spdx":null,"license_treatment":"unclear","name":"asserts","python_support":"supports_current","summary":"Stand-alone Assertions"},"popularity":{"monthly_downloads":106072,"position":12669,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.14.0"}
