Skip to content
This repository has been archived by the owner on Sep 18, 2018. It is now read-only.

Commit

Permalink
split out redis fixtures into it's own package - closes #160
Browse files Browse the repository at this point in the history
- removed all leftover code
  • Loading branch information
fizyk committed Dec 6, 2016
1 parent cee5fcc commit b771fe3
Show file tree
Hide file tree
Showing 28 changed files with 23 additions and 979 deletions.
14 changes: 1 addition & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,10 @@ python:
- '3.4'
- '3.5'
env:
- INSTALLATION="python setup.py develop" XDIST=1
- INSTALLATION="pip install ." XDIST=0
before_install:
- mkdir /tmp/dynamodb
- wget -O - http://dynamodb-local.s3-website-us-west-2.amazonaws.com/dynamodb_local_latest
| tar xz --directory /tmp/dynamodb
install:
- pip install -r requirements-test.txt
- "$INSTALLATION"
- pip install pytest_dbfixtures[mongodb,redis,rabbitmq,mysql,postgresql,dynamodb,tests]
coveralls wheel
- pip install -r requirements-test.txt wheel
script:
- py.test -n $XDIST --cov pytest_dbfixtures tests
- pylama
after_success:
- coveralls
deploy:
provider: pypi
user: thearoom
Expand Down
6 changes: 4 additions & 2 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ CHANGES
unreleased
------

- [enhancements] split out RabbitMQ fixtures into separate package. See `pytest-dynamodb <https://pypi.python.org/pypi/pytest-rabbitmq/>`_
- [enhancements] split out MySQL fixtures into separate package. See `pytest-dynamodb <https://pypi.python.org/pypi/pytest-mysql/>`_
- [enhancements] removed all leftover code and limited documentation, directed to each indicidual packages.
- [enhancements] split out Redis fixtures into separate package. See `pytest-redis <https://pypi.python.org/pypi/pytest-redis/>`_
- [enhancements] split out RabbitMQ fixtures into separate package. See `pytest-rabbitmq <https://pypi.python.org/pypi/pytest-rabbitmq/>`_
- [enhancements] split out MySQL fixtures into separate package. See `pytest-mysql <https://pypi.python.org/pypi/pytest-mysql/>`_
- [enhancements] split out DynamoDB fixtures into separate package. See `pytest-dynamodb <https://pypi.python.org/pypi/pytest-dynamodb/>`_

0.17.0
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
include *.rst
recursive-include src/pytest_dbfixtures *.py *.conf
recursive-include src/pytest_dbfixtures *.py
41 changes: 13 additions & 28 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,39 +22,24 @@ pytest-dbfixtures
:target: https://pypi.python.org/pypi/pytest-dbfixtures/
:alt: License


Package status
--------------

.. image:: https://travis-ci.org/ClearcodeHQ/pytest-dbfixtures.svg?branch=v0.17.0
:target: https://travis-ci.org/ClearcodeHQ/pytest-dbfixtures
:alt: Tests

.. image:: https://coveralls.io/repos/ClearcodeHQ/pytest-dbfixtures/badge.png?branch=v0.17.0
:target: https://coveralls.io/r/ClearcodeHQ/pytest-dbfixtures?branch=v0.17.0
:alt: Coverage Status

.. image:: https://requires.io/github/ClearcodeHQ/pytest-dbfixtures/requirements.svg?tag=v0.17.0
:target: https://requires.io/github/ClearcodeHQ/pytest-dbfixtures/requirements/?tag=v0.17.0
:alt: Requirements Status

Overview
--------

py.test clean fixtures for: ``postgresql``, ``mysql``, ``redis``, ``mongo``, ``elasticsearch``, ``dynamodb`` and ``rabbitmq``.

Starts specific database deamon and cleanup all data produced during tests.


Install
-------

.. sourcecode:: bash
Pytest dbfixtures was a pytest plugin that makes it a lot easier
to set up proper database or storage engine for testing.

$ pip install --upgrade pytest-dbfixtures
As of version 1.0.0 every process fixture got moved into it's own pytest plugin for easier maintenance,
and pytest-dbfixture itself got converted into metapacakge.

List of packages:

How to use
----------
* `pytest-elasticsearch <https://pypi.python.org/pypi/pytest-elasticsearch/>`_
* `pytest-postgresql <https://pypi.python.org/pypi/pytest-postgresql/>`_
* `pytest-dynamodb <https://pypi.python.org/pypi/pytest-dynamodb/>`_
* `pytest-rabbitmq <https://pypi.python.org/pypi/pytest-rabbitmq/>`_
* `pytest-mysql <https://pypi.python.org/pypi/pytest-mysql/>`_
* `pytest-redis <https://pypi.python.org/pypi/pytest-redis/>`_
* `pytest-mongo <https://pypi.python.org/pypi/pytest-mongo/>`_

Please see `documentation <http://pytest-dbfixtures.readthedocs.org/en/latest/howtouse.html>`_
Please see individual packages on hot to use them, although their usage is pretty similar.
8 changes: 0 additions & 8 deletions docs/api.rst

This file was deleted.

34 changes: 0 additions & 34 deletions docs/api/factories.rst

This file was deleted.

11 changes: 0 additions & 11 deletions docs/api/plugin.rst

This file was deleted.

44 changes: 0 additions & 44 deletions docs/configure.rst

This file was deleted.

3 changes: 0 additions & 3 deletions docs/contributing.rst

This file was deleted.

83 changes: 0 additions & 83 deletions docs/howtouse.rst

This file was deleted.

11 changes: 2 additions & 9 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,14 @@
Welcome to pytest dbfixtures's documentation!
=============================================

Pytest dbfixtures is a pytest plugin that makes it a lot easier
to set up proper database or storage engine for testing. Simply use one of
provided fixtures that start predefined clean database server for your
tests or creates server more tailored for your application by using
one of provided factories.

.. include:: ../README.rst

Contents:

.. toctree::
:maxdepth: 2

install
howtouse
configure
api
contributing
changelog

Expand Down
10 changes: 0 additions & 10 deletions docs/install.rst

This file was deleted.

8 changes: 0 additions & 8 deletions requirements-test.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
# test runs requirements (versions we'll be testing against) - automatically updated by requires.io
coverage==4.2 # pytest-cov
mirakuru==0.8.2
path.py==9.0
port-for==0.3.1
pyyaml==3.12
pymlconf==0.7.0 # rq.filter: !=0.5.0
pytest==3.0.5 # rq.filter: !=2.9.0,!=2.9.1,!=2.9.2
redis==2.10.5
pylama==7.3.1
pyflakes==1.3.0
pycodestyle==2.2.0
17 changes: 2 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,29 +51,16 @@ def read(fname):
author='Clearcode - The A Room',
author_email='thearoom@clearcode.cc',
url='https://github.com/ClearcodeHQ/pytest-dbfixtures',
install_requires=[
'pytest>=2.3.4',
'mirakuru>=0.2', # test executors helpers
'pyyaml>=3.10',
'pymlconf>=0.2.10a,!=0.3.12,!=0.3.13,!=0.3.14,!=0.5.0',
'path.py>=4.2',
'port-for>=0.3.1', # needed for random port selection
],
install_requires=[],
package_dir={'': 'src'},
packages=find_packages('src'),
include_package_data=True,
extras_require={
'documentation': ['Sphinx', ],
'tests': [
'pytest-cov==2.4.0',
'pytest-xdist==1.15.0',
'Mock==2.0.0',
],
'mysql': ['pytest-mysql'],
'postgresql': ['pytest-postgresql'],
'mongodb': ['pytest-mongo'],
'elasticsearch': ['pytest-elasticsearch'],
'redis': ['redis'],
'redis': ['pytest-redis'],
'rabbitmq': ['pytest-rabbitmq'],
'dynamodb': ['pytest-dynamodb'],
},
Expand Down
13 changes: 0 additions & 13 deletions src/pytest_dbfixtures/conf/dbfixtures.conf

This file was deleted.

2 changes: 0 additions & 2 deletions src/pytest_dbfixtures/conf/rabbit.conf

This file was deleted.

16 changes: 0 additions & 16 deletions src/pytest_dbfixtures/conf/redis.conf

This file was deleted.

0 comments on commit b771fe3

Please sign in to comment.