Skip to content

Instantly share code, notes, and snippets.

@lmorchard
Created July 23, 2012 22:03
Show Gist options
  • Save lmorchard/3166533 to your computer and use it in GitHub Desktop.
Save lmorchard/3166533 to your computer and use it in GitHub Desktop.
Attachment test failures
(kuma-venv)[vagrant@kuma vagrant]$ (cd / && /vagrant/manage.py test wiki)
nosetests --verbosity 1 wiki
Creating test database 'default'...
...Skipping setup of test_kuma!
...Try FORCE_DB=true if you need fresh databases.
No fixtures found.
.................F..............................................................SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.......SSS..SSSSS......S..........SSSSSSSSSSS..................SSSSSSSSSSSSS........S..SS..EE.F....................E....................S.....2012-07-23 15:02:22,155 ERROR [Errno 2] No such file or directory: '/home/vagrant/mdc_pages/popular.json'
2012-07-23 15:02:22,441 ERROR [Errno 2] No such file or directory: '/home/vagrant/mdc_pages/popular.json'
...........
======================================================================
ERROR: test_attachment_detail (vagrant.apps.wiki.tests.test_views.AttachmentTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/vagrant/../vagrant/apps/wiki/tests/test_views.py", line 2102, in test_attachment_detail
attachment = Attachment.objects.get(title='Test file for viewing')
File "/vagrant/vendor/src/django/django/db/models/manager.py", line 132, in get
return self.get_query_set().get(*args, **kwargs)
File "/vagrant/vendor/src/django/django/db/models/query.py", line 347, in get
% self.model._meta.object_name)
DoesNotExist: Attachment matching query does not exist.
======================================================================
ERROR: test_edit_attachment (vagrant.apps.wiki.tests.test_views.AttachmentTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/vagrant/../vagrant/apps/wiki/tests/test_views.py", line 2061, in test_edit_attachment
attachment = Attachment.objects.get(title='Test editing file')
File "/vagrant/vendor/src/django/django/db/models/manager.py", line 132, in get
return self.get_query_set().get(*args, **kwargs)
File "/vagrant/vendor/src/django/django/db/models/query.py", line 347, in get
% self.model._meta.object_name)
DoesNotExist: Attachment matching query does not exist.
======================================================================
ERROR: test_seo_script (vagrant.apps.wiki.tests.test_views.DocumentEditingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/vagrant/../vagrant/apps/wiki/tests/test_views.py", line 638, in test_seo_script
make_page_and_compare_seo('fa', complex_html_prefix + '<p>' + fa_chars + '</p>', fa_chars)
File "/vagrant/../vagrant/apps/wiki/tests/test_views.py", line 616, in make_page_and_compare_seo
eq_(str(meta_content).decode('utf-8'),
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-1: ordinal not in range(128)
======================================================================
FAIL: test_form_save_section (vagrant.apps.wiki.tests.test_forms.FormSectionEditingTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/vagrant/../vagrant/apps/wiki/tests/test_forms.py", line 85, in test_form_save_section
normalize_html(new_rev.content))
File "/vagrant/vendor/packages/nose/nose/tools.py", line 31, in eq_
assert a == b, msg or "%r != %r" % (a, b)
AssertionError: u'<h1 id="s1">s1</h1><p>test</p><p>test</p><h1 id="New_stuff">New stuff</h1><p>new stuff</p><h1 id="s3">s3</h1><p>test</p><p>test</p>' != u'<h1 id="s1">s1</h1><p>test</p><p>test</p><h1 id="s2">New stuff</h1><p>new stuff</p><h1 id="s3">s3</h1><p>test</p><p>test</p>'
======================================================================
FAIL: test_new_attachment (vagrant.apps.wiki.tests.test_views.AttachmentTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/vagrant/../vagrant/apps/wiki/tests/test_views.py", line 2020, in test_new_attachment
eq_(302, resp.status_code)
File "/vagrant/vendor/packages/nose/nose/tools.py", line 31, in eq_
assert a == b, msg or "%r != %r" % (a, b)
AssertionError: 302 != 403
----------------------------------------------------------------------
Ran 308 tests in 80.138s
FAILED (SKIP=112, errors=3, failures=2)
(kuma-venv)[vagrant@kuma vagrant]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment