Skip to main content

pytest-pymysql-autorecording

A pytest plugin for recording database query results and mocking with the stored data.

Mocking with real database data

In principle, mocking database data is a good idea. But if your database is very complex, this may easily become tedious and may lack the richness of the real data.

Testing with real data leads to another problem, though: You might not want to grant your CI/CD pipeline on, say, GitHub, access to a database.

So this plugin offers a compromise. You still run tests against a real database, and you store the query results. The stored results can then be used by the CI/CD pipeline to mock the database queries.

Using the plugin

Please refer to the Quickstart Guide to find out how to use the plugin.

Release files for pytest-pymysql-autorecord 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytest-pymysql-autorecord 0.1.0
File Size Uploaded
pytest-pymysql-autorecord-0.1.0.tar.gz 24.7 kB Details

Release files / pytest-pymysql-autorecord-0.1.0.tar.gz

Download URL pytest-pymysql-autorecord-0.1.0.tar.gz
Size 24.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7c7d2611d0a0fc0e9de3c105fae1c1ddfffc3042fe28e1bcf9931c147dbfc557
BLAKE2b-256 checksum
How to use checksums
ad0a98775afd9414d182c19ad0390acc545659a2954668fa64f65e6046b7cef2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.0 CPython/3.10.0

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page