Install & Compatibility
Where this runs
tested against v1.3.7 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 43.2MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 3.2s · import 0.000s · 41MB
41MB installed
● package 41MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
mock
✓ from pgmock import mock
✗ from pgmock import MockPGClient
patch
✓ from pgmock import patch
mocker
✓ from pgmock import mocker
Initialize MockPGClient, add expected queries, and execute.
from pgmock import MockPGClient
client = MockPGClient()
# Simulate a query result
client.add_query("SELECT 1", result=[("1",)])
result = client.execute("SELECT 1")
print(result.fetchall()) # [('1',)]
Upgrade
Version history
1.3.7latest on PyPI · released Sep 25, 2020
Audit
Dependencies
No dependency data recorded yet.