django-runtests

Sagteware kiekie:
django-runtests
Sagteware besonderhede:
Weergawe: 0.4.0
Upload datum: 20 Feb 15
Ontwikkelaar: Raphael Barrois
Lisensie: Gratis
Populariteit: 3

Rating: nan/5 (Total Votes: 0)

Django-runtests is 'n Django app wat vergemaklik die skryf van 'n runtests.py script vir plug Django aansoek.
Sulke skrifte voorsien gewoonlik 'n runtests () metode wat die toets hardloop gedrag hanteer.
Installasie
& Nbsp; Wêreldwyd:
& Nbsp; pit installeer Django-runtests
& Nbsp; Van die pakket se setup.py lêer (met behulp van Versprei):
& Nbsp; setup (
& Nbsp; test_requires = [
& Nbsp; 'Django-runtests',
& Nbsp;],
& Nbsp; test_suite = 'runtests.runtests',
& Nbsp;)
Definiëring van die toets opstel
In jou runtests.py lêer, voeg die volgende kode:
invoer django_runtests
Klastoetse (django_runtests.RunTests):
& Nbsp; TESTED_APPS = ['my.app.to.test', 'my.other.test']
& Nbsp; EXTRA_APPS = [
& Nbsp; 'django.contrib.auth',
& Nbsp; # Ander persoonlike programme te sluit
& Nbsp;]
& Nbsp; EXTRA_SETTINGS = {
& Nbsp; # Custom instellings, as 'n dict
& Nbsp;}
def runtests ():
& Nbsp; terugkeer Tests.runtests ()
As __name__ == '__main__':
& Nbsp; Tests.main ()

Vereistes :

  • Python
  • Django

Ander sagteware ontwikkelaar Raphael Barrois

UConf
UConf

13 May 15

django-xworkflows
django-xworkflows

20 Feb 15

palm2vcal
palm2vcal

14 Apr 15

mpdlcd
mpdlcd

15 Apr 15

Kommentaar te django-runtests

Kommentaar nie gevind
Kommentaar te lewer
Draai op die foto!