Skip to main content
Help us improve Python packaging – donate today!

sql evaluator for mocking

Project Description

https://travis-ci.org/abe-winter/pg13-py.svg?branch=master

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 notifications

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 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 May 3, 2015
pg13-0.1.1.tar.gz (58.1 kB) Copy SHA256 hash SHA256 Source None May 3, 2015

Supported by

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