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

ockham-guest at users.alioth.debian.org ockham-guest at users.alioth.debian.org
Sat Jul 23 14:30:17 UTC 2011


    Date: Saturday, July 23, 2011 @ 14:30:16
  Author: ockham-guest
Revision: 17896

Patch to remove auto-verified URLFields from (non-preview) tests

Added:
  packages/python-django-threadedcomments/trunk/debian/patches/remove_urlfields_from_tests
Modified:
  packages/python-django-threadedcomments/trunk/debian/changelog
  packages/python-django-threadedcomments/trunk/debian/patches/series

Modified: packages/python-django-threadedcomments/trunk/debian/changelog
===================================================================
--- packages/python-django-threadedcomments/trunk/debian/changelog	2011-07-23 14:03:47 UTC (rev 17895)
+++ packages/python-django-threadedcomments/trunk/debian/changelog	2011-07-23 14:30:16 UTC (rev 17896)
@@ -1,3 +1,11 @@
+python-django-threadedcomments (0.5.3-2) unstable; urgency=low
+
+  * debian/patches/remove_urlfields_from_tests: Remove auto-verified URLFields
+    from (non-preview) tests as this lead to FTBFS on build systems which don't
+    have internet access. (Closes: #614535)
+
+ -- Bernhard Reiter <ockham at raz.or.at>  Sat, 23 Jul 2011 15:54:32 +0200
+
 python-django-threadedcomments (0.5.3-1) unstable; urgency=low
 
   * New upstream release.

Added: packages/python-django-threadedcomments/trunk/debian/patches/remove_urlfields_from_tests
===================================================================
--- packages/python-django-threadedcomments/trunk/debian/patches/remove_urlfields_from_tests	                        (rev 0)
+++ packages/python-django-threadedcomments/trunk/debian/patches/remove_urlfields_from_tests	2011-07-23 14:30:16 UTC (rev 17896)
@@ -0,0 +1,103 @@
+# Description: Remove auto-verified URLFields from (non-preview) tests.
+# Author: Bernhard Reiter <ockham at raz.or.at>
+# Forwarded: not-needed
+# Bug-Debian: http://bugs.debian.org/614535
+
+--- a/threadedcomments/tests/views_tests.py
++++ b/threadedcomments/tests/views_tests.py
+@@ -34,13 +34,12 @@
+         response = self.client.post(url, {
+             'comment': 'test1',
+             'name': 'eric',
+-            'website': 'http://www.eflorenzano.com/',
+             'email': 'floguy at gmail.com',
+             'next': '/'
+         })
+         o = FreeThreadedComment.objects.latest('date_submitted').get_base_data(show_dates=False)
+         self.assertEquals(o, {
+-            'website': u'http://www.eflorenzano.com/',
++            'website': u'',
+             'comment': u'test1',
+             'name': u'eric',
+             'parent': None,
+@@ -108,13 +107,12 @@
+         response = self.client.post(url, {
+             'comment': 'test2',
+             'name': 'eric',
+-            'website': 'http://www.eflorenzano.com/',
+             'email': 'floguy at gmail.com'
+         })
+         tmp = loads(response.content)
+         o = FreeThreadedComment.objects.latest('date_submitted').get_base_data(show_dates=False)
+         self.assertEquals(o, {
+-            'website': u'http://www.eflorenzano.com/',
++            'website': u'',
+             'comment': u'test2',
+             'name': u'eric',
+             'parent': None,
+@@ -159,11 +157,11 @@
+             'ajax': 'xml'
+         })
+         
+-        response = self.client.post(url, {'comment' : 'test3', 'name' : 'eric', 'website' : 'http://www.eflorenzano.com/', 'email' : 'floguy at gmail.com', 'next' : '/'})
++        response = self.client.post(url, {'comment' : 'test3', 'name' : 'eric', 'email' : 'floguy at gmail.com', 'next' : '/'})
+         tmp = parseString(response.content)
+         o = FreeThreadedComment.objects.latest('date_submitted').get_base_data(show_dates=False)
+         self.assertEquals(o, {
+-            'website': u'http://www.eflorenzano.com/',
++            'website': u'',
+             'comment': u'test3',
+             'name': u'eric',
+             'parent': None,
+@@ -215,13 +213,12 @@
+         response = self.client.post(url, {
+             'comment': 'test4',
+             'name': 'eric',
+-            'website': 'http://www.eflorenzano.com/',
+             'email': 'floguy at gmail.com',
+             'next' : '/'
+         })
+         o = FreeThreadedComment.objects.latest('date_submitted').get_base_data(show_dates=False)
+         self.assertEquals(o, {
+-            'website': u'http://www.eflorenzano.com/',
++            'website': u'',
+             'comment': u'test4',
+             'name': u'eric',
+             'parent': parent,
+@@ -253,13 +250,12 @@
+         response = self.client.post(url, {
+             'comment': 'test5',
+             'name': 'eric',
+-            'website': 'http://www.eflorenzano.com/',
+             'email': 'floguy at gmail.com'
+         })
+         tmp = loads(response.content)
+         o = FreeThreadedComment.objects.latest('date_submitted').get_base_data(show_dates=False)
+         self.assertEquals(o, {
+-            'website': u'http://www.eflorenzano.com/',
++            'website': u'',
+             'comment': u'test5',
+             'name': u'eric',
+             'parent': parent,
+@@ -290,13 +286,12 @@
+         
+         response = self.client.post(url, {
+             'comment': 'test6', 'name': 'eric',
+-            'website': 'http://www.eflorenzano.com/',
+             'email': 'floguy at gmail.com'
+         })
+         tmp = parseString(response.content)
+         o = FreeThreadedComment.objects.latest('date_submitted').get_base_data(show_dates=False)
+         self.assertEquals(o, {
+-            'website': u'http://www.eflorenzano.com/',
++            'website': u'',
+             'comment': u'test6',
+             'name': u'eric',
+             'parent': parent,
+@@ -839,4 +834,4 @@
+         self.assertEquals(len(response.content) > 0, True)
+         
+         o = ThreadedComment.objects.get(id=deleted_id) != None
+-        self.assertEquals(o, True)
+\ No newline at end of file
++        self.assertEquals(o, True)

Modified: packages/python-django-threadedcomments/trunk/debian/patches/series
===================================================================
--- packages/python-django-threadedcomments/trunk/debian/patches/series	2011-07-23 14:03:47 UTC (rev 17895)
+++ packages/python-django-threadedcomments/trunk/debian/patches/series	2011-07-23 14:30:16 UTC (rev 17896)
@@ -1,2 +1,3 @@
 gravatar_default_url
 add_markup_deps_to_install
+remove_urlfields_from_tests




More information about the Python-modules-commits mailing list