django-runtests

Software screenshot:
django-runtests
Dettagli del software:
Versione: 0.4.0
Data di caricamento: 20 Feb 15
Sviluppatore: Raphael Barrois
Licenza: Libero
Popolarità: 3

Rating: nan/5 (Total Votes: 0)

Django-runtests è un app Django che facilita la scrittura di una sceneggiatura runtests.py per pluggable applicazione Django.
Questi script di solito forniscono un () metodo runtests che gestiscono il comportamento di test di funzionamento.
Installazione
& Nbsp; a livello globale:
& Nbsp; pip installazione Django-runtests
& Nbsp; Dal file setup.py del pacchetto (usando Distribuire):
& Nbsp; setup (
& nbsp; test_requires = [
& Nbsp; "Django-runtests ',
& Nbsp;],
& Nbsp; "runtests.runtests 'test_suite =,
& Nbsp;)
Definire la configurazione di prova
Nel file runtests.py, aggiungere il seguente codice:
django_runtests importazione
Test di classe (django_runtests.RunTests):
& Nbsp; TESTED_APPS = ['my.app.to.test', 'my.other.test']
& Nbsp; EXTRA_APPS = [
& Nbsp; 'django.contrib.auth',
& Nbsp; # Altre applicazioni personalizzate per includere
& Nbsp;]
& Nbsp; EXTRA_SETTINGS = {
& Nbsp; impostazioni # personalizzate, come dict
& Nbsp;}
runtests DEF ():
& Nbsp; ritorno Tests.runtests ()
if __name__ == '__main__':
& Nbsp; Tests.main ()

Requisiti :

  • Python
  • Django

Altri software di sviluppo Raphael Barrois

palm2vcal
palm2vcal

14 Apr 15

UConf
UConf

13 May 15

django-xworkflows
django-xworkflows

20 Feb 15

Commenti a django-runtests

I commenti non trovato
Aggiungi commento
Accendere le immagini!