Metadata-Version: 1.1
Name: django-sabot
Version: 0.1.0
Summary: Provoke predictable errors in your Django projects.
Home-page: https://github.com/rosarior/django-sabot
Author: Roberto Rosario
Author-email: roberto.rosario.gonzalez@gmail.com
License: The MIT License (MIT)

Copyright (c) 2015 Roberto Rosario

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

Description: Sabot: Controlled failure for Django
        ====================================
        
        |Logo|
        
        
        Description
        -----------
        Provoke predictable errors in your Django projects. Raise OperationalErrors to
        see how well your project handle database connection errors. Ideal for failure
        tolerance testing.
        
        
        License
        -------
        
        This project is open sourced under the `MIT License`_.
        
        
        Installation
        ------------
        
        .. code-block:: bash
        
            $ pip install django-sabot
        
        * Add ``'sabot'``, to your project's ``INSTALLED_APPS`` list.
        * Add some sabot patches in your settings.py file.
        
        
        Usage
        -----
        
        In you settings.py file::
        
            from django.db import OperationalError
        
            from sabot.import *
        
            SABOT_PATCHES = (
                ConnectPatcher(error_generator=RandomErrorProducer, kwargs={'low': 1, 'high': 3}),
                CursorPatcher(error_producer=RandomErrorProducer, kwargs={'exception': OperationalError, 'low': 1, 'high': 10}),
                CursorPatcher(error_producer=CountErrorProducer, kwargs={'exception': OperationalError, 'number': 100, 'reset': True}),
                CursorPatcher(error_producer=TimeDeltaErrorProducer, kwargs={'exception': OperationalError, 'timedelta': {'seconds': 30}, 'reset': True}),
            )
        
        A django-sabot patch is composed of a monkey patcher class and an error producer
        class.
        
        For example::
        
            CursorPatcher(error_producer=TimeDeltaErrorProducer, kwargs={'exception': OperationalError, 'timedelta': {'seconds': 30}, 'reset': True}),
        
        will produce an OperationalError when a database cursor is requested, every 30
        seconds.
        
        
        Contribute
        ----------
        
        - Check for open issues or open a fresh issue to start a discussion around a feature idea or a bug.
        - Fork `the repository`_ on GitHub to start making your changes to the **master** branch (or branch off of it).
        - Write a test which shows that the bug was fixed or that the feature works as expected.
        - Make sure to add yourself to the `AUTHORS file`_.
        - Send a pull request
        
        .. _`MIT License`: https://github.com/rosarior/django-sabot/blob/master/LICENSE
        .. _`the repository`: http://github.com/rosarior/django-sabot
        .. _`AUTHORS file`: https://github.com/rosarior/django-sabot/blob/master/AUTHORS.rst
        .. |Logo| image:: https://github.com/rosarior/django-sabot/raw/master/docs/_static/logo.png
        
        
        0.1.0 (2015-07-20)
        ==================
        
        - Initial release
        
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Framework :: Django
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.7
