Django problems with tests

Thorsten Glaser t.glaser at tarent.de
Tue Apr 12 19:35:25 EST 2011


Hi,

I have three testsuite failures with the Django tests, and as
I’d like to convert our Planetplanet templates into Django ones,
it’s probably better to fix these first.

I’ve been using git head (9de21094a8cf565bdfcf75688e121a5ad1f5397b
from 18.Feb.) for this. The environment is a Debian Lenny server VM
with all packages from the sid dependency installed, but the planet
itself via git (because I put the theming into the repository later
and have the codebase upgradable this way):

python-chardet python-html5lib python-htmltmpl python-httplib2
python-librdf python-libxml2 python-support python-utidylib
python-beautifulsoup python-libxslt1 python-django python-genshi
python-lxml

(Thanks to XTaran for pointing me to Planet Venus, btw.)

bye,
//mirabilos
-- 
where .com meets .org. LinuxTag 2011 – tarent ist dabei.
Vom 11.‒14. Mai in Berlin. Wir freuen uns auf Ihren Besuch
in Halle 7.2b, Stand 130. Sie wünschen ein persönliches
Gespräch? – Wenden Sie sich an <sales at tarent.de>.

tarent Gesellschaft für Softwareentwicklung und IT-Beratung mbH
Heilsbachstraße 24, D-53123 Bonn • http://www.tarent.de/
Tel: +49 228 52675-93 • Fax: +49 228 52675-25
HRB AG Bonn 5168 • USt-ID (VAT): DE122264941
Geschäftsführer: Boris Esser, Elmar Geese
-------------- next part --------------
....................E.EE...............................................................................................................................................................................................................
======================================================================
ERROR: test_django_config_context (tests.test_filter_django.DjangoFilterTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/www/planet/tests/test_filter_django.py", line 44, in test_django_config_context
    os.path.realpath('tests/data/filter/django/config.html.dj'), input)
  File "/var/www/planet/planet/shell/dj.py", line 22, in run
    settings._wrapped=None
  File "/var/lib/python-support/python2.5/django/conf/__init__.py", line 41, in __setattr__
    self._import_settings()
  File "/var/lib/python-support/python2.5/django/conf/__init__.py", line 57, in _import_settings
    raise ImportError("Settings cannot be imported, because environment variable %s is undefined." % ENVIRONMENT_VARIABLE)
ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.

======================================================================
ERROR: test_django_entry_title (tests.test_filter_django.DjangoFilterTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/www/planet/tests/test_filter_django.py", line 26, in test_django_entry_title
    os.path.realpath('tests/data/filter/django/title.html.dj'), input)
  File "/var/www/planet/planet/shell/dj.py", line 22, in run
    settings._wrapped=None
  File "/var/lib/python-support/python2.5/django/conf/__init__.py", line 41, in __setattr__
    self._import_settings()
  File "/var/lib/python-support/python2.5/django/conf/__init__.py", line 57, in _import_settings
    raise ImportError("Settings cannot be imported, because environment variable %s is undefined." % ENVIRONMENT_VARIABLE)
ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.

======================================================================
ERROR: test_django_entry_title_autoescape_off (tests.test_filter_django.DjangoFilterTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/www/planet/tests/test_filter_django.py", line 36, in test_django_entry_title_autoescape_off
    os.path.realpath('tests/data/filter/django/title.html.dj'), input)
  File "/var/www/planet/planet/shell/dj.py", line 22, in run
    settings._wrapped=None
  File "/var/lib/python-support/python2.5/django/conf/__init__.py", line 41, in __setattr__
    self._import_settings()
  File "/var/lib/python-support/python2.5/django/conf/__init__.py", line 57, in _import_settings
    raise ImportError("Settings cannot be imported, because environment variable %s is undefined." % ENVIRONMENT_VARIABLE)
ImportError: Settings cannot be imported, because environment variable DJANGO_SETTINGS_MODULE is undefined.

----------------------------------------------------------------------
Ran 231 tests in 29.296s

FAILED (errors=3)


More information about the devel mailing list