Package: python-django-registration
Version: 0.7-2
Severity: normal
Tags: patch

Automatic tests fail whenever custom registration form
uses extra fields failing validation (i.e. captcha).

To reproduce the bug extract the test_fix.tar.gz attachement,
and run cd test_fix/ && python manage.py test

The patch attached below isolates the URLconf used
by tests provided with django-registration
(see http://docs.djangoproject.com/en/1.1/topics/testing/#urlconf-configuration
for details).

The patch depends on sha_warning.diff provided in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=581721.

-- System Information:
Debian Release: squeeze/sid
  APT prefers karmic-updates
  APT policy: (990, 'karmic-updates'), (990, 'karmic-security'), (990, 
'karmic'), (650, 'lucid')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.31-21-generic (SMP w/4 CPU cores)
Locale: LANG=uk_UA.UTF-8, LC_CTYPE=uk_UA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-django-registration depends on:
ii  python                    2.6.4-0ubuntu1 An interactive high-level object-o
ii  python-django             1.1.1-1ubuntu1 High-level Python web development 
ii  python-support            1.0.3ubuntu1   automated rebuilding support for P

python-django-registration recommends no packages.

python-django-registration suggests no packages.

-- no debconf information

Attachment: test_fix.tar.gz
Description: GNU Zip compressed data

--- Begin Message ---
Automatic tests fail whenever custom registration form
uses extra fields failing validation (i.e. captcha).
Force builtin URLconf to ensure default form is used in test.

Signed-off-by: Ihor Kaharlichenko <ce...@mifprojects.com>

---
 registration/tests.py |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/registration/tests.py b/registration/tests.py
index 098a286..7c49855 100644
--- a/registration/tests.py
+++ b/registration/tests.py
@@ -265,6 +265,9 @@ class RegistrationViewTests(RegistrationTestCase):
     Tests for the views included in django-registration.
     
     """
+
+    urls = 'registration.urls'
+
     def test_registration_view(self):
         """
         Test that the registration view rejects invalid submissions,
-- 
tg: (1f03a3a..) fix/test_failures (depends on: fix/sha_warning)

--- End Message ---

Reply via email to