This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

sql evaluator for mocking

Project Description

install with pip install pg13

docs at http://pg13.readthedocs.org/en/latest/

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. https://github.com/abe-winter/pg13-py

Release History

Release History

This version
History Node

0.1.1

History Node

0.0.9

History Node

0.0.8

History Node

0.0.7

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
pg13-0.1.1-py2-none-any.whl (180.3 kB) Copy SHA256 Checksum SHA256 2.7 Wheel May 3, 2015
pg13-0.1.1.tar.gz (58.1 kB) Copy SHA256 Checksum SHA256 Source May 3, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting