{"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":"Automatically creates and tears down temporary PostgreSQL instances for testing, handling setup and cleanup without manual intervention.","skillfed_tags":["database-testing","test-fixtures","abandoned"],"use_cases":["Unit tests that need real PostgreSQL behavior without a shared test database.","Integration tests that require schema fixtures and data isolation between test cases.","CI/CD pipelines where PostgreSQL must be provisioned and torn down per test run.","Development workflows testing database migrations or schema changes in isolation.","Parameterized tests that each need a fresh database state without manual setup code."],"what_it_does":"testing.postgresql is a test fixture library that spawns isolated PostgreSQL instances in temporary directories for the duration of a test run, then cleans them up automatically. It wraps the PostgreSQL command-line tools (initdb and postgres) to create fresh databases on demand, eliminating the need to manage shared test databases or mock database connections.\n\nThe package provides two main patterns: direct instantiation via Postgresql() for simple per-test isolation, or PostgresqlFactory with caching to reuse an initialized database schema across multiple tests, reducing setup overhead. It integrates with standard unittest patterns and supports passing connection details to database drivers via url() or dsn() methods.","worth_installing":"No. The package is abandoned (latest release 2016-02-04) and targets Python 2.6, 2.7, 3.2, 3.3, 3.4, 3.5\u2014all end-of-life versions. Modern Python and PostgreSQL compatibility are untested. For new projects, consider actively maintained alternatives."},"id":"testing-postgresql","links":{"html":"https://skillfed.io/packages/testing-postgresql","md":"https://skillfed.io/packages/testing-postgresql.md","pypi":"https://pypi.org/project/testing-postgresql/"},"maintenance":{"status":"abandoned"},"meta":{"latest_release":"2016-02-04","license_spdx":null,"license_treatment":"permissive","name":"testing.postgresql","python_support":"unspecified","summary":"automatically setups a postgresql instance in a temporary directory, and destroys it after testing"},"popularity":{"monthly_downloads":4479309,"position":2293,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"1.3.0"}
