pytest-mysql

JSON →
library 4.0.0 ·python
verified May 24, 2026

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.

total hits 21
actors 7 distinct systems
last hit 1d ago ByteDance
GPTBot
6
MetaBot
4
Script
2
ByteDance
2
ClaudeBot
1

top countries 🇺🇸 United States · 🇫🇮 Finland · 🇩🇪 Germany · 🇸🇬 Singapore · 🇨🇦 Canada