{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/3"},{"label":"Testing","url":"https://skillfed.io/packages/category/software-development-testing"},{"label":"Database","url":"https://skillfed.io/packages/category/database"}],"enrichment":{"capability":"Provides base classes and utilities for building database testing frameworks, allowing you to create isolated, temporary database instances for test suites.","skillfed_tags":["database-testing","test-fixtures","abandoned"],"use_cases":["Build a PostgreSQL testing framework by subclassing Database and implementing database-specific initialization and server-launch logic.","Create a test suite that spawns temporary database instances on unused ports, avoiding conflicts between parallel test runs.","Cache an initialized database schema across multiple tests to reduce per-test setup time while maintaining isolation.","Skip database-dependent tests when the database server executable is not found on the system."],"what_it_does":"testing.common.database is a base-class library for building database testing frameworks. It provides a Database class that you subclass to define how to initialize, start, and check the health of a temporary database instance, plus a DatabaseFactory for managing multiple instances and caching initialized databases across test runs. It also includes utility decorators to skip tests when a database command is not found, and helpers like get_unused_port() and get_path_of() for locating free ports and executables.\n\nThe package is designed to be inherited and extended, not used directly. You implement hooks like initialize_database(), get_server_commandline(), and is_server_available() to teach it how to manage your specific database. Once subclassed, you can use it as a context manager to spin up isolated database instances for each test, optionally caching the initialized state to avoid repeated setup overhead.","worth_installing":"No. The package is abandoned (last release October 2017, last commit December 2021) and receives no maintenance or security updates. While it has low install friction and permissive licensing, it is a template library requiring substantial subclassing work, and there is no active support or modern alternatives documented. Use only if you are maintaining legacy code already depending on it; for new projects, evaluate actively maintained testing frameworks."},"id":"testing-common-database","links":{"html":"https://skillfed.io/packages/testing-common-database","md":"https://skillfed.io/packages/testing-common-database.md","pypi":"https://pypi.org/project/testing-common-database/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2017-10-23","license_spdx":null,"license_treatment":"permissive","name":"testing.common.database","python_support":"unspecified","summary":"utilities for testing.* packages"},"popularity":{"monthly_downloads":4507297,"position":2290,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"2.0.3"}
