django-runtestsA base framework to write a simple runtests.py script for Django apps | |
Download |
django-runtests Ranking & Summary
Advertisement
- License:
- MIT/X Consortium Lic...
- Price:
- FREE
- Publisher Name:
- Raphael Barrois
- Publisher web site:
- https://github.com/rbarrois/
django-runtests Tags
django-runtests Description
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=, test_suite='runtests.runtests', )Defining the test setupIn your runtests.py file, add the following code:import django_runtestsclass Tests(django_runtests.RunTests): TESTED_APPS = EXTRA_APPS = EXTRA_SETTINGS = { # Custom settings, as a dict }def runtests(): return Tests.runtests()if __name__ == '__main__': Tests.main()Product's homepage
django-runtests Related Software