django-runtests

Software Screenshot:
django-runtests
Software Details:
Version: 0.4.0
Upload Date: 20 Feb 15
Developer: Raphael Barrois
Distribution Type: Freeware
Downloads: 26

Rating: nan/5 (Total Votes: 0)

django-runtests is a Django app that 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:

import django_runtests

class Tests(django_runtests.RunTests):
 TESTED_APPS = ['my.app.to.test', 'my.other.test']

 EXTRA_APPS = [
 'django.contrib.auth',
 # Other custom apps to include
 ]

 EXTRA_SETTINGS = {
 # Custom settings, as a dict
 }

def runtests():
 return Tests.runtests()

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

Requirements:

  • Python
  • Django

Other Software of Developer Raphael Barrois

django-xworkflows
django-xworkflows

20 Feb 15

UConf
UConf

13 May 15

palm2vcal
palm2vcal

14 Apr 15

Comments to django-runtests

Comments not found
Add Comment
Turn on images!