django-runtests

Logiciel capture d'écran:
django-runtests
Détails logiciels:
Version: 0.4.0
Date de transfert: 20 Feb 15
Développeur: Raphael Barrois
Licence: Gratuit
Popularité: 26

Rating: nan/5 (Total Votes: 0)

django-runtests est une application Django qui facilite l'écriture d'un script pour une application Django runtests.py enfichable.
Ces scripts fournissent habituellement un runtests () méthode qui gèrent le comportement test de roulage.
Installation
& Nbsp; l'échelle mondiale:
& Nbsp; pip installer django-runtests
& Nbsp; Du fichier setup.py de l'emballage (en utilisant Distribuer):
& Nbsp; configuration (
& nbsp; test_requires = [
& Nbsp; »django-runtests ',
& Nbsp;],
& Nbsp; »runtests.runtests '= test_suite,
& Nbsp;)
Définir configuration du test
Dans votre fichier runtests.py, ajoutez le code suivant:
django_runtests d'importation
Tests de classe (django_runtests.RunTests):
& Nbsp; TESTED_APPS = ['my.app.to.test »,« my.other.test']
& Nbsp; EXTRA_APPS = [
& Nbsp; »django.contrib.auth ',
& Nbsp; # D'autres applications personnalisées à inclure
& Nbsp;]
& Nbsp; EXTRA_SETTINGS = {
& Nbsp; # paramètres personnalisés, comme dict
& Nbsp;}
runtests def ():
& Nbsp; retourner Tests.runtests ()
if __name__ == '__main__':
& Nbsp; Tests.main ()

Exigences :

  • Python
  • Django

D'autres logiciels de développeur Raphael Barrois

palm2vcal
palm2vcal

14 Apr 15

mpdlcd
mpdlcd

15 Apr 15

django-xworkflows
django-xworkflows

20 Feb 15

UConf
UConf

13 May 15

Commentaires à django-runtests

Commentaires non trouvées
Ajouter un commentaire
Tourner sur les images!