[Python-modules-commits] r14767 - in packages/python-django/trunk/debian (3 files)

evgeni at users.alioth.debian.org evgeni at users.alioth.debian.org
Thu Oct 28 10:35:06 UTC 2010


    Date: Thursday, October 28, 2010 @ 10:34:52
  Author: evgeni
Revision: 14767

Disable model tests that require an internet connection.
Closes: #601070

Added:
  packages/python-django/trunk/debian/patches/07_disable_url_verify_model_tests.diff
Modified:
  packages/python-django/trunk/debian/changelog
  packages/python-django/trunk/debian/patches/series

Modified: packages/python-django/trunk/debian/changelog
===================================================================
--- packages/python-django/trunk/debian/changelog	2010-10-28 08:37:04 UTC (rev 14766)
+++ packages/python-django/trunk/debian/changelog	2010-10-28 10:34:52 UTC (rev 14767)
@@ -1,3 +1,11 @@
+python-django (1.2.3-2) unstable; urgency=low
+
+  * Team upload.
+  * Disable model tests that require an internet connection.
+    Closes: #601070
+
+ -- Evgeni Golov <evgeni at debian.org>  Thu, 28 Oct 2010 12:34:00 +0200
+
 python-django (1.2.3-1) unstable; urgency=low
 
   [ Krzysztof Klimonda ]

Added: packages/python-django/trunk/debian/patches/07_disable_url_verify_model_tests.diff
===================================================================
--- packages/python-django/trunk/debian/patches/07_disable_url_verify_model_tests.diff	                        (rev 0)
+++ packages/python-django/trunk/debian/patches/07_disable_url_verify_model_tests.diff	2010-10-28 10:34:52 UTC (rev 14767)
@@ -0,0 +1,26 @@
+Forwarded-Upstream: not needed
+Author: Evgeni Golov <evgeni at debian.org>
+Comment:
+ Disable model tests that require an internet connection.
+ .
+ This is a Debian specific patch.
+
+Index: python-django-1.2.3/tests/modeltests/validation/tests.py
+===================================================================
+--- python-django-1.2.3.orig/tests/modeltests/validation/tests.py	2010-10-23 14:59:12.447389830 +0200
++++ python-django-1.2.3/tests/modeltests/validation/tests.py	2010-10-23 15:01:01.875390381 +0200
+@@ -52,14 +52,6 @@
+         mtv = ModelToValidate(number=10, name='Some Name', url='not a url')
+         self.assertFieldFailsValidationWithMessage(mtv.full_clean, 'url', [u'Enter a valid value.'])
+ 
+-    def test_correct_url_but_nonexisting_gives_404(self):
+-        mtv = ModelToValidate(number=10, name='Some Name', url='http://google.com/we-love-microsoft.html')
+-        self.assertFieldFailsValidationWithMessage(mtv.full_clean, 'url', [u'This URL appears to be a broken link.'])
+-
+-    def test_correct_url_value_passes(self):
+-        mtv = ModelToValidate(number=10, name='Some Name', url='http://www.djangoproject.com/')
+-        self.assertEqual(None, mtv.full_clean()) # This will fail if there's no Internet connection
+-
+     def test_text_greater_that_charfields_max_length_eaises_erros(self):
+         mtv = ModelToValidate(number=10, name='Some Name'*100)
+         self.assertFailsValidation(mtv.full_clean, ['name',])

Modified: packages/python-django/trunk/debian/patches/series
===================================================================
--- packages/python-django/trunk/debian/patches/series	2010-10-28 08:37:04 UTC (rev 14766)
+++ packages/python-django/trunk/debian/patches/series	2010-10-28 10:34:52 UTC (rev 14767)
@@ -3,3 +3,4 @@
 04_hyphen-manpage.diff
 05_fix_regression_tests.diff
 06_fix_regression_tests.diff
+07_disable_url_verify_model_tests.diff




More information about the Python-modules-commits mailing list