Still pretty new to Django.  I'm trying to understand how to write django tests 
and hit the following test failures in other installed apps.

1.  Does the sekizai test failure mean that it expects settings to be in the 
python path?  My settings.py file does have TEMPLATE_DEBUG, why isn't setting 
this picked up in testing?
2. The registration error below means that django-registration isn't compatible 
with internationalization?

Thanks,
Brian



======================================================================
ERROR: test_12_validate_context (sekizai.tests.SekizaiTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/bschott/Source/nimbis-workshop/apps/sekizai/tests.py", line 233, 
in test_12_validate_context
    self.assertRaises(template.TemplateSyntaxError, validate_context, 
django_ctx)
  File 
"/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/unittest/case.py",
 line 456, in assertRaises
    callableObj(*args, **kwargs)
  File 
"/Users/bschott/Source/nimbis-workshop/apps/sekizai/templatetags/sekizai_tags.py",
 line 24, in validate_context
    if not settings.TEMPLATE_DEBUG:
  File 
"/Users/bschott/.virtualenvs/cms22/lib/python2.7/site-packages/django/utils/functional.py",
 line 277, in __getattr__
    return getattr(self._wrapped, name)
AttributeError: 'Settings' object has no attribute 'TEMPLATE_DEBUG'

======================================================================
FAIL: test_registration_view (registration.tests.RegistrationViewTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File 
"/Users/bschott/.virtualenvs/cms22/lib/python2.7/site-packages/registration/tests.py",
 line 290, in test_registration_view
    self.assertEqual(response['Location'], 'http://testserver%s' % 
reverse('registration_complete'))
AssertionError: 'http://testserver/en/accounts/register/complete/' != 
'http://testserver/accounts/register/complete/'

----------------------------------------------------------------------
Ran 284 tests in 3.491s


INSTALLED_APPS = (                                                              
                                                                                
                     
    'registration',                                                             
                                                                                
                     
    'uploadify',                                                                
                                                                                
                     
    'filebrowser', # must be above django.contrib.admin                         
                                                                                
                     
    # Django related apps                                                       
                                                                                
                     
    'django.contrib.auth',                                                      
                                                                                
                     
    'django.contrib.contenttypes',                                              
                                                                                
                     
    'django.contrib.humanize',                                                  
                                                                                
                     
    'django.contrib.sessions',                                                  
                                                                                
                     
    'django.contrib.sites',                                                     
                                                                                
                     
    'django.contrib.staticfiles',                                               
                                                                                
                     
    'django.contrib.admin',                                                     
                                                                                
                     
    # django-cms related apps                                                   
                                                                                
                     
    'cms',                                                                      
                                                                                
                     
    'mptt',                                                                     
                                                                                
                     
    'menus',                                                                    
                                                                                
                     
    'south',                                                                    
                                                                                
                     
    'publisher',                                                                
                                                                                
                     
    'sekizai',                                                                  
                                                                                
                     
    'cms.plugins.file',                                                         
                                                                                
                     
    'cms.plugins.googlemap',                                                    
                                                                                
                     
    'cms.plugins.picture',                                                      
                                                                                
                     
    'cms.plugins.link',                                                         
                                                                                
                     
    'cms.plugins.flash',                                                        
                                                                                
                     
    'cms.plugins.snippet',                                                      
                                                                                
                     
    'cms.plugins.inherit',                                                      
                                                                                
                     
    'cms.plugins.text',                                                         
                                                                                
                     
    'cmsplugin_advancednews',                                                   
                                                                                
                     
    # useful 3rd party apps                                                     
                                                                                
                     
    'compressor',                                                               
                                                                                
                     
    'easy_thumbnails',                                                          
                                                                                
                     
    'filer',                                                                    
                                                                                
                     
    # your own apps                                                             
                                                                                
                     
    'nimbis_cloud',                                                             
                                                                                
                     
)                                                                               
                                                                                
                     



Brian Schott
bfsch...@gmail.com



Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to