Skip to content

Instantly share code, notes, and snippets.

@PirosB3
Created July 16, 2014 10:18
Show Gist options
  • Save PirosB3/cfc6b4df5ceca755f42f to your computer and use it in GitHub Desktop.
Save PirosB3/cfc6b4df5ceca755f42f to your computer and use it in GitHub Desktop.
sssssssssssssssssssssssssss.....................E..
======================================================================
ERROR: test_lorem_tag (django.contrib.webdesign.tests.WebdesignTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/bench/django/django/contrib/webdesign/tests.py", line 20, in test_lorem_tag
File "/root/bench/django/django/template/loader.py", line 156, in get_template_from_string
return Template(source, origin, name)
File "/root/bench/django/django/template/base.py", line 134, in __init__
self.nodelist = compile_string(template_string, origin)
File "/root/bench/django/django/template/base.py", line 164, in compile_string
return parser.parse()
File "/root/bench/django/django/template/base.py", line 292, in parse
compiled_result = compile_func(self, token)
File "/root/bench/django/django/template/defaulttags.py", line 1115, in load
if name in lib.tags:
TemplateSyntaxError: 'webdesign' is not a valid tag library: ImportError raised loading django.contrib.webdesign.templatetags.webdesign: cannot import name lorem
======================================================================
FAIL: test_template_loader_postmortem_notreadable (view_tests.tests.test_debug.DebugViewTests)
Tests for not readable file
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/bench/django/tests/view_tests/tests/test_debug.py", line 138, in test_template_loader_postmortem_notreadable
self.assertContains(response, "%s (File is not readable)" % template_path, status_code=500, count=1)
File "/root/bench/django/django/test/testcases.py", line 353, in assertContains
response, text, status_code, msg_prefix, html)
File "/root/bench/django/django/test/testcases.py", line 323, in _assert_contains
" (expected %d)" % (response.status_code, status_code))
AssertionError: Couldn't retrieve content: Response code was 200 (expected 500)
======================================================================
FAIL: test_get_or_create_raises_IntegrityError_plus_traceback (get_or_create.tests.GetOrCreateTestsWithManualPKs)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/bench/django/tests/get_or_create/tests.py", line 97, in test_get_or_create_raises_IntegrityError_plus_traceback
self.assertIn(str('obj.save'), formatted_traceback)
AssertionError: 'obj.save' not found in 'Traceback (most recent call last):\n File "/root/bench/django/tests/get_or_create/tests.py", line 94, in test_get_or_create_raises_IntegrityError_plus_traceback\n ManualPrimaryKeyTest.objects.get_or_create(id=1, data="Different")\n File "/root/bench/django/django/db/models/manager.py", line 80, in manager_method\n return getattr(self.get_queryset(), name)(*args, **kwargs)\n File "/root/bench/django/django/db/models/query.py", line 434, in get_or_create\n except self.model.DoesNotExist:\n File "/root/bench/django/django/db/models/query.py", line 474, in _create_object_from_params\n pass\n File "/root/bench/django/django/db/models/query.py", line 466, in _create_object_from_params\n with transaction.atomic(using=self.db):\n File "/root/bench/django/django/db/models/query.py", line 382, in create\n self._for_write = True\n File "/root/bench/django/django/db/models/base.py", line 622, in save\n self.save_base(using=using, force_insert=force_insert,\n File "/root/bench/django/django/db/models/base.py", line 650, in save_base\n self._save_parents(cls, using, update_fields)\n File "/root/bench/django/django/db/models/base.py", line 731, in _save_table\n update_pk = bool(meta.has_auto_field and not pk_set)\n File "/root/bench/django/django/db/models/base.py", line 764, in _do_insert\n return manager._insert([self], fields=fields, return_id=update_pk,\n File "/root/bench/django/django/db/models/manager.py", line 80, in manager_method\n return getattr(self.get_queryset(), name)(*args, **kwargs)\n File "/root/bench/django/django/db/models/query.py", line 930, in _insert\n query.insert_values(fields, objs, raw=raw)\n File "/root/bench/django/django/db/models/sql/compiler.py", line 919, in execute_sql\n for p, vals in zip(placeholders, params)\n File "/root/bench/django/django/db/backends/utils.py", line 63, in execute\n return self.cursor.execute(sql, params)\n File "/root/bench/django/django/db/utils.py", line 95, in __exit__\n six.reraise(dj_exc_type, dj_exc_value, traceback)\n File "/root/bench/django/django/db/backends/utils.py", line 63, in execute\n return self.cursor.execute(sql, params)\n File "/root/bench/django/django/db/backends/sqlite3/base.py", line 485, in execute\n return Database.Cursor.execute(self, query, params)\nIntegrityError: UNIQUE constraint failed: get_or_create_manualprimarykeytest.id\n'
======================================================================
FAIL: test_version (admin_scripts.tests.CommandTypes)
version is handled as a special case
----------------------------------------------------------------------
Traceback (most recent call last):
File "/root/bench/django/tests/admin_scripts/tests.py", line 1337, in test_version
self.assertOutput(out, get_version())
File "/root/bench/django/tests/admin_scripts/tests.py", line 189, in assertOutput
self.assertTrue(msg in stream, "'%s' does not match actual output text '%s'" % (msg, stream))
AssertionError: '1.8.dev20140716085021' does not match actual output text '1.8.dev20140716091754
'
----------------------------------------------------------------------
Ran 7164 tests in 317.343s
FAILED (failures=3, errors=1, skipped=628, expected failures=8)
Destroying test database for alias 'default'...
Destroying test database for alias 'other'...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment