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

Eases the writing of a runtests.py script for pluggable django application.

Such scripts usually provide a runtests() method that handle the test running behaviour.

Installation

  • Globally:

    $ pip install django-runtests
    
  • From the package’s setup.py file (using Distribute):

    setup(
        test_requires=[
            'django-runtests',
        ],
        test_suite='runtests.runtests',
    )
    

Defining the test setup

In your runtests.py file, add the following code:

from django_runtests import RunTests

def runtests():
    return RunTests.runtests()

if __name__ == '__main__':
    RunTests.main()

Tweaking the test setup

If you need to tweak some parts (updating configuration, adding options, …), you simply have to extend the RunTests command class:

import django_runtests

class RunTests(django_runtests.RunTests):

    def should_test_app(self, app):
        """Test only applications listed in 'PACKAGE_APPS' setting."""
        from django.conf import settings
        return app in settings.PACKAGE_APPS
Release History

Release History

0.4.0

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

0.3.0

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

0.2.0

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
django_runtests-0.4.0.tar.gz (8.2 kB) Copy SHA256 Checksum SHA256 Source Sep 10, 2012

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