pytest-mysql
JSON →pytest-mysql is a pytest plugin, version 4.0.0, that facilitates testing code reliant on a running MySQL/MariaDB database. It provides pytest fixtures for managing MySQL process lifecycle (`mysql_proc`) and client connections (`mysql`, `mysql_noproc`), ensuring isolated and repeatable database environments for tests. It automatically handles starting and stopping MySQL instances for test sessions and can clean up test databases per function. The project is actively maintained, with the latest version released in December 2024.
Traffic · last 30 days ↑11% vs prev 7d
total hits 21
actors 7 distinct systems
last hit 1d ago ByteDance
top countries 🇺🇸 United States · 🇫🇮 Finland · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada
Resources
API endpoints
full doc /v1/registry/pytest-mysql
compatibility /v1/registry/pytest-mysql/compatibility