{"categories":[{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing/4"}],"enrichment":{"capability":"Provides mock helpers for SQLAlchemy sessions and expression matchers to enable unit testing without database access while preserving assertion capabilities.","skillfed_tags":["sqlalchemy-testing","abandoned"],"use_cases":["Unit test SQLAlchemy-based code without spinning up a test database or fixtures.","Assert that query filters were applied correctly by comparing filter expressions directly.","Stub query results based on specific filter criteria to test conditional logic in data access layers.","Mock session.add() and session.query() calls to verify ORM operations without persistence.","Test complex multi-filter query chains by unifying and inspecting all filter calls together."],"what_it_does":"alchemy-mock provides utilities to mock SQLAlchemy sessions and query expressions in unit tests, eliminating the need to access a real database during testing. It includes ExpressionMatcher for comparing SQLAlchemy binary expressions (which normally produce another expression rather than a boolean), AlchemyMagicMock for basic session mocking, and UnifiedAlchemyMagicMock for more complex scenarios where sessions are queried multiple times with different filters. The library can stub real data by filtering criteria and partially supports session mutations like add() and add_all().\n\nThe package depends on six, sqlalchemy, and setuptools. It is classified as Pre-Alpha and has not been maintained since early 2021, with the last release in November 2019. While it has modest popularity, the abandoned status means bug fixes and compatibility updates are unlikely.","worth_installing":"Yes, but with caution. The package solves a real testing problem and has low install friction, but it is abandoned and has not been updated since 2021. Install it only if your SQLAlchemy and Python versions are compatible with its last release, and only if you are willing to maintain a fork or workaround if compatibility breaks. For new projects, consider actively maintained alternatives."},"id":"alchemy-mock","links":{"html":"https://skillfed.io/packages/alchemy-mock","md":"https://skillfed.io/packages/alchemy-mock.md","pypi":"https://pypi.org/project/alchemy-mock/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2019-11-05","license_spdx":null,"license_treatment":"permissive","name":"alchemy-mock","python_support":"unspecified","summary":"SQLAlchemy mock helpers."},"popularity":{"monthly_downloads":223061,"position":9253,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.4.3"}
