Skip to main content

sql evaluator for mocking

Project description

install with pip install pg13

docs at

pg13 is a SQL evaluator for python designed for testing. Normally when you want to test an application with database dependencies, you have three dangerous options:

  1. artisanal mocking: standard mocking frameworks make you specify the output of every DB call
  2. local db: have a running copy of the database
  3. everything but: test everything but the DB interaction

pg13 takes a different approach:

  • SQL is simulated in python
  • every test can create and populate its own lightweight database
  • tests are completely deterministic
  • parallelization is safe (because parallel tests have no chance of touching the same data)
  • performance: 200+ tests per second on my laptop

See the github readme for examples.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pg13-0.1.1-py2-none-any.whl (180.3 kB) Copy SHA256 hash SHA256 Wheel 2.7
pg13-0.1.1.tar.gz (58.1 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page