diff -u python-django-1.0/debian/rules python-django-1.0/debian/rules --- python-django-1.0/debian/rules +++ python-django-1.0/debian/rules @@ -10,6 +10,9 @@ include /usr/share/cdbs/1/rules/simple-patchsys.mk build/python-django:: + # testing + cp debian/tests_settings.py tests/settings.py + PYTHONPATH='.' python tests/runtests.py --settings=settings -v2 # Build HTML documentation, drop copy of source files cd docs && make html rm -rf docs/_build/html/_sources/ diff -u python-django-1.0/debian/changelog python-django-1.0/debian/changelog --- python-django-1.0/debian/changelog +++ python-django-1.0/debian/changelog @@ -1,3 +1,9 @@ +python-django (1.0-1ubuntu1~ppa1) intrepid; urgency=low + + * run test suite, except ones requiring net connection. + + -- Eddy Mulyono Thu, 04 Sep 2008 23:34:42 -0700 + python-django (1.0-1) unstable; urgency=low [ David Spreen ] only in patch2: unchanged: --- python-django-1.0.orig/debian/tests_settings.py +++ python-django-1.0/debian/tests_settings.py @@ -0,0 +1,4 @@ +DATABASE_ENGINE='sqlite3' +ROOT_URLCONF='tests/urls.py' +SITE_ID=1 + only in patch2: unchanged: --- python-django-1.0.orig/debian/patches/05_workaround_net_tests.patch +++ python-django-1.0/debian/patches/05_workaround_net_tests.patch @@ -0,0 +1,29 @@ +diff -Nur -x '*.orig' -x '*~' python-django-1.0/tests/regressiontests/forms/fields.py python-django-1.0.new/tests/regressiontests/forms/fields.py +--- python-django-1.0/tests/regressiontests/forms/fields.py 2008-08-31 13:10:50.000000000 -0700 ++++ python-django-1.0.new/tests/regressiontests/forms/fields.py 2008-09-04 23:38:03.000000000 -0700 +@@ -912,25 +912,13 @@ + URLField takes an optional verify_exists parameter, which is False by default. + This verifies that the URL is live on the Internet and doesn't return a 404 or 500: + >>> f = URLField(verify_exists=True) +->>> f.clean('http://www.google.com') # This will fail if there's no Internet connection +-u'http://www.google.com/' + >>> f.clean('http://example') + Traceback (most recent call last): + ... + ValidationError: [u'Enter a valid URL.'] +->>> f.clean('http://www.broken.djangoproject.com') # bad domain +-Traceback (most recent call last): +-... +-ValidationError: [u'This URL appears to be a broken link.'] +->>> f.clean('http://google.com/we-love-microsoft.html') # good domain, bad page +-Traceback (most recent call last): +-... +-ValidationError: [u'This URL appears to be a broken link.'] + >>> f = URLField(verify_exists=True, required=False) + >>> f.clean('') + u'' +->>> f.clean('http://www.google.com') # This will fail if there's no Internet connection +-u'http://www.google.com/' + + URLField also access min_length and max_length parameters, for convenience. + >>> f = URLField(min_length=15, max_length=20)