This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

A library for writing test cases against a temporary rethinkdb database.


This should go without saying, but to run a rethinkdb server, you will need to have rethinkdb installed on your machine. Follow the instructions on their [website]( for details.


Testre is available on pypi:
>pip install testre

It can also be installed directly:
>git clone
>cd testre
>python install

Testre will run a rethinkdb server in a temporary directory, automatically stopping the process and cleaning up after you're done (or in case of an exception).

Basic usage:
from testre import run_rethink

with run_rethink() as port:

You can pass the `port` argument to have the server listen on a specific port:
with run_rethink(port=YOUR_PORT):

If testre cannot bind to a port it will clean itself up and then throw an `OSError`.

### Data ###
Sometimes you want to run tests against a database that has data in it. Testre provides to different ways to do this based on your needs.

If your tests don't modify the database, you can run directly on that database by passing a `pathlib.Path` to the `rethink_data` directory using the `path` argument.

If you are going to be making changes, a better option is to pass that directory as the first positional argument. Instead of running on that data directly, testre will copy that data and run on the copy. That way you can run all the tests your heart desires without worrying about breaking anything:
with run_rethink(PATH_TO_YOUR_DATA) as port:

Should I Just Use This to Run my Rethinkdb Server All the Time?



Testre is available under the Mozilla Public License version 2.0.
Release History

Release History


This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
testre-0.1.0.tar.gz (4.3 kB) Copy SHA256 Checksum SHA256 Source Feb 4, 2016

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