mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Began converting localflavor doctests into unittests, starting with the German ones. Also introduced a new base class to facilitate ease of testing form fields. We have always been at war with doctests. Thanks to Idan Gazit for the patch.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@14626 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
@@ -7,7 +7,7 @@ from localflavor.ca import tests as localflavor_ca_tests
|
||||
from localflavor.ch import tests as localflavor_ch_tests
|
||||
from localflavor.cl import tests as localflavor_cl_tests
|
||||
from localflavor.cz import tests as localflavor_cz_tests
|
||||
from localflavor.de import tests as localflavor_de_tests
|
||||
from localflavor.de import DELocalFlavorTests
|
||||
from localflavor.es import tests as localflavor_es_tests
|
||||
from localflavor.fi import tests as localflavor_fi_tests
|
||||
from localflavor.fr import tests as localflavor_fr_tests
|
||||
@@ -41,7 +41,6 @@ __test__ = {
|
||||
'localflavor_ch_tests': localflavor_ch_tests,
|
||||
'localflavor_cl_tests': localflavor_cl_tests,
|
||||
'localflavor_cz_tests': localflavor_cz_tests,
|
||||
'localflavor_de_tests': localflavor_de_tests,
|
||||
'localflavor_es_tests': localflavor_es_tests,
|
||||
'localflavor_fi_tests': localflavor_fi_tests,
|
||||
'localflavor_fr_tests': localflavor_fr_tests,
|
||||
@@ -63,7 +62,3 @@ __test__ = {
|
||||
'localflavor_uy_tests': localflavor_uy_tests,
|
||||
'localflavor_za_tests': localflavor_za_tests,
|
||||
}
|
||||
|
||||
if __name__ == "__main__":
|
||||
import doctest
|
||||
doctest.testmod()
|
||||
|
||||
Reference in New Issue
Block a user