Skip to content

Instantly share code, notes, and snippets.

@dryan
Created April 30, 2011 20:00
Show Gist options
  • Save dryan/949947 to your computer and use it in GitHub Desktop.
Save dryan/949947 to your computer and use it in GitHub Desktop.
oembed errors.py
======================================================================
ERROR: test_internal_media_aggregation (oembed.tests.tests.models.ModelTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/models.py", line 94, in test_internal_media_aggregation
category1 = Category.objects.get(pk=1)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/manager.py", line 132, in get
return self.get_query_set().get(*args, **kwargs)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/query.py", line 344, in get
num = len(clone)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/query.py", line 82, in __len__
self._result_cache = list(self.iterator())
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/query.py", line 273, in iterator
for row in compiler.results_iter():
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 680, in results_iter
for rows in self.execute_sql(MULTI):
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 735, in execute_sql
cursor.execute(sql, params)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 86, in execute
return self.cursor.execute(query, args)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.4-x86_64.egg/MySQLdb/cursors.py", line 174, in execute
self.errorhandler(self, exc, value)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.4-x86_64.egg/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
DatabaseError: (1146, "Table 'test_chattarati.tests_category' doesn't exist")
======================================================================
ERROR: test_media_aggregation (oembed.tests.tests.models.ModelTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/models.py", line 54, in test_media_aggregation
r.save()
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/base.py", line 460, in save
self.save_base(using=using, force_insert=force_insert, force_update=force_update)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/base.py", line 553, in save_base
result = manager._insert(values, return_id=update_pk, using=using)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/manager.py", line 195, in _insert
return insert_query(self.model, values, **kwargs)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/query.py", line 1436, in insert_query
return query.get_compiler(using=using).execute_sql(return_id)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 791, in execute_sql
cursor = super(SQLInsertCompiler, self).execute_sql(None)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 735, in execute_sql
cursor.execute(sql, params)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 86, in execute
return self.cursor.execute(query, args)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.4-x86_64.egg/MySQLdb/cursors.py", line 174, in execute
self.errorhandler(self, exc, value)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.4-x86_64.egg/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
DatabaseError: (1146, "Table 'test_chattarati.tests_rich' doesn't exist")
======================================================================
ERROR: test_stored_oembeds (oembed.tests.tests.models.ModelTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/models.py", line 14, in test_stored_oembeds
video = oembed.site.embed(self.youtube_url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 131, in embed
provider = self.provider_for_url(url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 110, in provider_for_url
for provider, regex in self.get_registry().items():
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 99, in get_registry
self.ensure_populated()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 93, in ensure_populated
self.populate()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 79, in populate
self._registry[instance] = instance.regex
File "/Users/dryan/Sites/chattarati_data/libs/oembed/providers.py", line 288, in _build_regex
raise OEmbedException('Error looking up %s' % self._meta.named_view)
OEmbedException: Error looking up test_blog_detail
======================================================================
ERROR: test_stored_providers (oembed.tests.tests.models.ModelTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/models.py", line 36, in test_stored_providers
active = StoredProvider.objects.get(pk=100)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/manager.py", line 132, in get
return self.get_query_set().get(*args, **kwargs)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/query.py", line 349, in get
% self.model._meta.object_name)
DoesNotExist: StoredProvider matching query does not exist.
======================================================================
ERROR: test_autodiscover (oembed.tests.tests.templatetags.OEmbedTemplateTagTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/templatetags.py", line 67, in test_autodiscover
c = Context({'obj': Category.objects.get(pk=1)})
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/manager.py", line 132, in get
return self.get_query_set().get(*args, **kwargs)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/query.py", line 344, in get
num = len(clone)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/query.py", line 82, in __len__
self._result_cache = list(self.iterator())
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/query.py", line 273, in iterator
for row in compiler.results_iter():
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 680, in results_iter
for rows in self.execute_sql(MULTI):
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 735, in execute_sql
cursor.execute(sql, params)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 86, in execute
return self.cursor.execute(query, args)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.4-x86_64.egg/MySQLdb/cursors.py", line 174, in execute
self.errorhandler(self, exc, value)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.4-x86_64.egg/MySQLdb/connections.py", line 36, in defaulterrorhandler
raise errorclass, errorvalue
DatabaseError: (1146, "Table 'test_chattarati.tests_category' doesn't exist")
======================================================================
ERROR: test_scheme (oembed.tests.tests.templatetags.OEmbedTemplateTagTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/templatetags.py", line 74, in test_scheme
result = t.render(c)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/template/base.py", line 123, in render
return self._render(context)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/test/utils.py", line 57, in instrumented_test_render
return self.nodelist.render(context)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/template/base.py", line 744, in render
bits.append(self.render_node(node, context))
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/template/debug.py", line 73, in render_node
result = node.render(context)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/templatetags/oembed_tags.py", line 208, in render
current_site = Site.objects.get_current()
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/contrib/sites/models.py", line 25, in get_current
current_site = self.get(pk=sid)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/manager.py", line 132, in get
return self.get_query_set().get(*args, **kwargs)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/query.py", line 349, in get
% self.model._meta.object_name)
TemplateSyntaxError: Caught DoesNotExist while rendering: Site matching query does not exist.
======================================================================
ERROR: test_basic_handling (oembed.tests.tests.views.OEmbedViewTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/views.py", line 20, in test_basic_handling
response = self.client.get('/oembed/json/?url=%s' % self.category_url)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/test/client.py", line 445, in get
response = super(Client, self).get(path, data=data, **extra)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/test/client.py", line 229, in get
return self.request(**r)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/views.py", line 35, in json
provider = oembed.site.provider_for_url(url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 110, in provider_for_url
for provider, regex in self.get_registry().items():
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 99, in get_registry
self.ensure_populated()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 93, in ensure_populated
self.populate()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 79, in populate
self._registry[instance] = instance.regex
File "/Users/dryan/Sites/chattarati_data/libs/oembed/providers.py", line 288, in _build_regex
raise OEmbedException('Error looking up %s' % self._meta.named_view)
OEmbedException: Error looking up test_blog_detail
======================================================================
ERROR: test_missing_endpoint (oembed.tests.tests.views.OEmbedViewTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/views.py", line 11, in test_missing_endpoint
response = self.client.get('/oembed/json/?url=http://www.nothere.com/asdf/')
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/test/client.py", line 445, in get
response = super(Client, self).get(path, data=data, **extra)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/test/client.py", line 229, in get
return self.request(**r)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/views.py", line 35, in json
provider = oembed.site.provider_for_url(url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 110, in provider_for_url
for provider, regex in self.get_registry().items():
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 99, in get_registry
self.ensure_populated()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 93, in ensure_populated
self.populate()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 79, in populate
self._registry[instance] = instance.regex
File "/Users/dryan/Sites/chattarati_data/libs/oembed/providers.py", line 288, in _build_regex
raise OEmbedException('Error looking up %s' % self._meta.named_view)
OEmbedException: Error looking up test_blog_detail
======================================================================
ERROR: test_oembed_schema (oembed.tests.tests.views.OEmbedViewTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/views.py", line 46, in test_oembed_schema
response = self.client.get('/oembed/')
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/test/client.py", line 445, in get
response = super(Client, self).get(path, data=data, **extra)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/test/client.py", line 229, in get
return self.request(**r)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/views.py", line 107, in oembed_schema
current_domain = Site.objects.get_current().domain
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/contrib/sites/models.py", line 25, in get_current
current_site = self.get(pk=sid)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/manager.py", line 132, in get
return self.get_query_set().get(*args, **kwargs)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/query.py", line 349, in get
% self.model._meta.object_name)
DoesNotExist: Site matching query does not exist.
======================================================================
ERROR: test_stored_provider_signals (oembed.tests.tests.views.OEmbedViewTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/views.py", line 28, in test_stored_provider_signals
response = self.client.get('/oembed/json/?url=%s' % self.youtube_url)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/test/client.py", line 445, in get
response = super(Client, self).get(path, data=data, **extra)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/test/client.py", line 229, in get
return self.request(**r)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/views.py", line 35, in json
provider = oembed.site.provider_for_url(url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 110, in provider_for_url
for provider, regex in self.get_registry().items():
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 99, in get_registry
self.ensure_populated()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 93, in ensure_populated
self.populate()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 79, in populate
self._registry[instance] = instance.regex
File "/Users/dryan/Sites/chattarati_data/libs/oembed/providers.py", line 288, in _build_regex
raise OEmbedException('Error looking up %s' % self._meta.named_view)
OEmbedException: Error looking up test_blog_detail
======================================================================
ERROR: test_autodiscovery (oembed.tests.tests.sites.ProviderSiteTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/sites.py", line 52, in test_autodiscovery
resp = self.client.get('/oembed/')
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/test/client.py", line 445, in get
response = super(Client, self).get(path, data=data, **extra)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/test/client.py", line 229, in get
return self.request(**r)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/views.py", line 107, in oembed_schema
current_domain = Site.objects.get_current().domain
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/contrib/sites/models.py", line 25, in get_current
current_site = self.get(pk=sid)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/manager.py", line 132, in get
return self.get_query_set().get(*args, **kwargs)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/models/query.py", line 349, in get
% self.model._meta.object_name)
DoesNotExist: Site matching query does not exist.
======================================================================
ERROR: test_embed (oembed.tests.tests.sites.ProviderSiteTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/sites.py", line 29, in test_embed
self.assertRaises(OEmbedMissingEndpoint, oembed.site.embed, self.blog_url)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/unittest/case.py", line 456, in assertRaises
callableObj(*args, **kwargs)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 131, in embed
provider = self.provider_for_url(url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 110, in provider_for_url
for provider, regex in self.get_registry().items():
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 99, in get_registry
self.ensure_populated()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 93, in ensure_populated
self.populate()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 79, in populate
self._registry[instance] = instance.regex
File "/Users/dryan/Sites/chattarati_data/libs/oembed/providers.py", line 288, in _build_regex
raise OEmbedException('Error looking up %s' % self._meta.named_view)
OEmbedException: Error looking up test_category_detail
======================================================================
ERROR: test_get_provider (oembed.tests.tests.sites.ProviderSiteTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/sites.py", line 20, in test_get_provider
oembed.site.unregister(BlogProvider)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 63, in unregister
raise NotRegistered('%s is not registered' % provider_class.__name__)
NotRegistered: BlogProvider is not registered
======================================================================
ERROR: test_object_caching (oembed.tests.tests.sites.ProviderSiteTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/sites.py", line 40, in test_object_caching
resource = oembed.site.embed(self.blog_url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 131, in embed
provider = self.provider_for_url(url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 110, in provider_for_url
for provider, regex in self.get_registry().items():
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 99, in get_registry
self.ensure_populated()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 93, in ensure_populated
self.populate()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 79, in populate
self._registry[instance] = instance.regex
File "/Users/dryan/Sites/chattarati_data/libs/oembed/providers.py", line 288, in _build_regex
raise OEmbedException('Error looking up %s' % self._meta.named_view)
OEmbedException: Error looking up test_category_detail
======================================================================
ERROR: test_register (oembed.tests.tests.sites.ProviderSiteTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/sites.py", line 13, in test_register
oembed.site.unregister(BlogProvider)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 63, in unregister
raise NotRegistered('%s is not registered' % provider_class.__name__)
NotRegistered: BlogProvider is not registered
======================================================================
ERROR: test_django_datebased_provider (oembed.tests.tests.providers.ProviderTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/providers.py", line 137, in test_django_datebased_provider
resource = oembed.site.embed(self.blog_url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 131, in embed
provider = self.provider_for_url(url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 110, in provider_for_url
for provider, regex in self.get_registry().items():
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 99, in get_registry
self.ensure_populated()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 93, in ensure_populated
self.populate()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 79, in populate
self._registry[instance] = instance.regex
File "/Users/dryan/Sites/chattarati_data/libs/oembed/providers.py", line 288, in _build_regex
raise OEmbedException('Error looking up %s' % self._meta.named_view)
OEmbedException: Error looking up test_category_detail
======================================================================
ERROR: test_django_provider (oembed.tests.tests.providers.ProviderTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/providers.py", line 58, in test_django_provider
resource = oembed.site.embed(self.category_url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 131, in embed
provider = self.provider_for_url(url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 110, in provider_for_url
for provider, regex in self.get_registry().items():
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 99, in get_registry
self.ensure_populated()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 93, in ensure_populated
self.populate()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 79, in populate
self._registry[instance] = instance.regex
File "/Users/dryan/Sites/chattarati_data/libs/oembed/providers.py", line 288, in _build_regex
raise OEmbedException('Error looking up %s' % self._meta.named_view)
OEmbedException: Error looking up test_category_detail
======================================================================
ERROR: test_django_provider_image_sizing (oembed.tests.tests.providers.ProviderTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/providers.py", line 102, in test_django_provider_image_sizing
resource = oembed.site.embed(self.category_url, maxwidth=450)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 131, in embed
provider = self.provider_for_url(url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 110, in provider_for_url
for provider, regex in self.get_registry().items():
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 99, in get_registry
self.ensure_populated()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 93, in ensure_populated
self.populate()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 79, in populate
self._registry[instance] = instance.regex
File "/Users/dryan/Sites/chattarati_data/libs/oembed/providers.py", line 288, in _build_regex
raise OEmbedException('Error looking up %s' % self._meta.named_view)
OEmbedException: Error looking up test_category_detail
======================================================================
ERROR: test_django_provider_url_match (oembed.tests.tests.providers.ProviderTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/providers.py", line 125, in test_django_provider_url_match
resource = oembed.site.embed('http://www.example.com/testapp/category/2/')
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 131, in embed
provider = self.provider_for_url(url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 110, in provider_for_url
for provider, regex in self.get_registry().items():
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 99, in get_registry
self.ensure_populated()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 93, in ensure_populated
self.populate()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 79, in populate
self._registry[instance] = instance.regex
File "/Users/dryan/Sites/chattarati_data/libs/oembed/providers.py", line 288, in _build_regex
raise OEmbedException('Error looking up %s' % self._meta.named_view)
OEmbedException: Error looking up test_category_detail
======================================================================
ERROR: test_django_rich_provider (oembed.tests.tests.providers.ProviderTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/providers.py", line 152, in test_django_rich_provider
resource = oembed.site.embed(self.rich_url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 131, in embed
provider = self.provider_for_url(url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 110, in provider_for_url
for provider, regex in self.get_registry().items():
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 99, in get_registry
self.ensure_populated()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 93, in ensure_populated
self.populate()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 79, in populate
self._registry[instance] = instance.regex
File "/Users/dryan/Sites/chattarati_data/libs/oembed/providers.py", line 288, in _build_regex
raise OEmbedException('Error looking up %s' % self._meta.named_view)
OEmbedException: Error looking up test_category_detail
======================================================================
ERROR: test_meta_queryset_behavior (oembed.tests.tests.providers.ProviderTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/providers.py", line 37, in test_meta_queryset_behavior
obj = provider.get_object('http://example.com/testapp/blog/2010/may/01/entry-1/')
File "/Users/dryan/Sites/chattarati_data/libs/oembed/providers.py", line 596, in get_object
params = self.get_params(url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/providers.py", line 362, in get_params
match = re.match(self.regex, url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/providers.py", line 288, in _build_regex
raise OEmbedException('Error looking up %s' % self._meta.named_view)
OEmbedException: Error looking up test_blog_detail
======================================================================
ERROR: test_resource_object (oembed.tests.tests.providers.ProviderTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/providers.py", line 52, in test_resource_object
resource = provider.request_resource('http://example.com/testapp/blog/2010/may/01/entry-1/')
File "/Users/dryan/Sites/chattarati_data/libs/oembed/providers.py", line 573, in request_resource
obj = self.get_object(url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/providers.py", line 596, in get_object
params = self.get_params(url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/providers.py", line 362, in get_params
match = re.match(self.regex, url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/providers.py", line 288, in _build_regex
raise OEmbedException('Error looking up %s' % self._meta.named_view)
OEmbedException: Error looking up test_blog_detail
======================================================================
ERROR: test_json_handling (oembed.tests.tests.resources.ResourceTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/resources.py", line 9, in test_json_handling
resource = oembed.site.embed(self.category_url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 131, in embed
provider = self.provider_for_url(url)
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 110, in provider_for_url
for provider, regex in self.get_registry().items():
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 99, in get_registry
self.ensure_populated()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 93, in ensure_populated
self.populate()
File "/Users/dryan/Sites/chattarati_data/libs/oembed/sites.py", line 79, in populate
self._registry[instance] = instance.regex
File "/Users/dryan/Sites/chattarati_data/libs/oembed/providers.py", line 288, in _build_regex
raise OEmbedException('Error looking up %s' % self._meta.named_view)
OEmbedException: Error looking up test_category_detail
======================================================================
FAIL: test_extract_oembeds (oembed.tests.tests.consumer.ConsumerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/consumer.py", line 24, in test_extract_oembeds
self.assertEqual(len(embeds), 1)
AssertionError: 0 != 1
======================================================================
FAIL: test_extract_oembeds_html (oembed.tests.tests.consumer.ConsumerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/consumer.py", line 36, in test_extract_oembeds_html
self.assertEqual(len(embeds), 1)
AssertionError: 0 != 1
======================================================================
FAIL: test_parse_html (oembed.tests.tests.consumer.ConsumerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/consumer.py", line 20, in test_parse_html
self.assertEqual(consumed, '<p>%s</p>' % self.category_embed)
AssertionError: u'<p><a href="http://example.com/testapp/category/1/">http://example.com/testapp/category/1/</a></p>' != '<p><img src="http://example.com/media/images/test_image1_800x600.jpg" alt="Category 1" ></img></p>'
======================================================================
FAIL: test_parse_text (oembed.tests.tests.consumer.ConsumerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/consumer.py", line 16, in test_parse_text
self.assertEqual(consumed, self.category_embed)
AssertionError: u'<a href="http://example.com/testapp/category/1/">http://example.com/testapp/category/1/</a>' != '<img src="http://example.com/media/images/test_image1_800x600.jpg" alt="Category 1" ></img>'
======================================================================
FAIL: test_strip (oembed.tests.tests.consumer.ConsumerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/consumer.py", line 56, in test_strip
self.assertEqual(self.oembed_client.strip(test_string), expected)
AssertionError: 'testing [http://example.com/testapp/category/1/] [http://www.google.com]' != 'testing [] [http://www.google.com]'
======================================================================
FAIL: test_strip_html_failure (oembed.tests.tests.consumer.ConsumerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/consumer.py", line 80, in test_strip_html_failure
self.assertEqual(self.oembed_client.strip(test_string), actual)
AssertionError: '<a href="http://example.com/testapp/category/1/">http://example.com/testapp/category/1/</a> <p>http://example.com/testapp/category/1/</p> <p>http://www.google.com</p>' != '<a href=""></a> <p></p> <p>http://www.google.com</p>'
======================================================================
FAIL: test_basic_handling (oembed.tests.tests.parsers.HTMLParserTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/parsers.py", line 67, in test_basic_handling
self.assertEqual(parsed, '<p>%s</p>' % self.category_embed)
AssertionError: u'<p><a href="http://example.com/testapp/category/1/">http://example.com/testapp/category/1/</a></p>' != '<p><img src="http://example.com/media/images/test_image1_800x600.jpg" alt="Category 1" ></img></p>'
======================================================================
FAIL: test_block_handling (oembed.tests.tests.parsers.HTMLParserTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/parsers.py", line 75, in test_block_handling
self.assertEqual(parsed, '<p>Testing <a href="http://example.com/testapp/category/1/">Category 1</a></p><p>%s</p>' % self.category_embed)
AssertionError: u'<p>Testing <a href="http://example.com/testapp/category/1/">http://example.com/testapp/category/1/</a></p><p><a href="http://example.com/testapp/category/1/">http://example.com/testapp/category/1/</a></p>' != '<p>Testing <a href="http://example.com/testapp/category/1/">Category 1</a></p><p><img src="http://example.com/media/images/test_image1_800x600.jpg" alt="Category 1" ></img></p>'
======================================================================
FAIL: test_inline_link_handling (oembed.tests.tests.parsers.HTMLParserTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/parsers.py", line 71, in test_inline_link_handling
self.assertEqual(parsed, '<p>Testing <a href="http://example.com/testapp/category/1/">Category 1</a></p>')
AssertionError: u'<p>Testing <a href="http://example.com/testapp/category/1/">http://example.com/testapp/category/1/</a></p>' != '<p>Testing <a href="http://example.com/testapp/category/1/">Category 1</a></p>'
======================================================================
FAIL: test_outside_of_markup (oembed.tests.tests.parsers.HTMLParserTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/parsers.py", line 83, in test_outside_of_markup
self.assertEqual(parsed, '%s<p>Wow this is bad</p>' % self.category_embed)
AssertionError: u'<a href="http://example.com/testapp/category/1/">http://example.com/testapp/category/1/</a><p>Wow this is bad</p>' != '<img src="http://example.com/media/images/test_image1_800x600.jpg" alt="Category 1" ></img><p>Wow this is bad</p>'
======================================================================
FAIL: test_extract_filter (oembed.tests.tests.templatetags.OEmbedTemplateTagTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/templatetags.py", line 37, in test_extract_filter
self.assertEqual(result, self.category_url)
AssertionError: u'' != 'http://example.com/testapp/category/1/'
======================================================================
FAIL: test_oembed_filter (oembed.tests.tests.templatetags.OEmbedTemplateTagTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/templatetags.py", line 27, in test_oembed_filter
self.assertEqual(result, self.category_embed)
AssertionError: u'<a href="http://example.com/testapp/category/1/">http://example.com/testapp/category/1/</a>' != '<img src="http://example.com/media/images/test_image1_800x600.jpg" alt="Category 1" ></img>'
======================================================================
FAIL: test_oembed_tag (oembed.tests.tests.templatetags.OEmbedTemplateTagTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/templatetags.py", line 16, in test_oembed_tag
self.assertEqual(result, self.category_embed)
AssertionError: u'<a href="http://example.com/testapp/category/1/">http://example.com/testapp/category/1/</a>' != '<img src="http://example.com/media/images/test_image1_800x600.jpg" alt="Category 1" ></img>'
======================================================================
FAIL: test_strip_filter (oembed.tests.tests.templatetags.OEmbedTemplateTagTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/templatetags.py", line 53, in test_strip_filter
self.assertEqual(result, 'testing []')
AssertionError: u'testing [http://example.com/testapp/category/1/]' != 'testing []'
======================================================================
FAIL: test_basic_handling (oembed.tests.tests.parsers.TextBlockParserTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/parsers.py", line 15, in test_basic_handling
self.assertEqual(parsed, self.category_embed)
AssertionError: u'<a href="http://example.com/testapp/category/1/">http://example.com/testapp/category/1/</a>' != '<img src="http://example.com/media/images/test_image1_800x600.jpg" alt="Category 1" ></img>'
======================================================================
FAIL: test_block_handling (oembed.tests.tests.parsers.TextBlockParserTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/parsers.py", line 23, in test_block_handling
self.assertEqual(parsed, 'Testing %(embed)s\n%(embed)s' % ({'embed': self.category_embed}))
AssertionError: u'Testing <a href="http://example.com/testapp/category/1/">http://example.com/testapp/category/1/</a>\n<a href="http://example.com/testapp/category/1/">http://example.com/testapp/category/1/</a>' != 'Testing <img src="http://example.com/media/images/test_image1_800x600.jpg" alt="Category 1" ></img>\n<img src="http://example.com/media/images/test_image1_800x600.jpg" alt="Category 1" ></img>'
======================================================================
FAIL: test_inline_link_handling (oembed.tests.tests.parsers.TextBlockParserTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/parsers.py", line 19, in test_inline_link_handling
self.assertEqual(parsed, 'Testing %s' % self.category_embed)
AssertionError: u'Testing <a href="http://example.com/testapp/category/1/">http://example.com/testapp/category/1/</a>' != 'Testing <img src="http://example.com/media/images/test_image1_800x600.jpg" alt="Category 1" ></img>'
======================================================================
FAIL: test_basic_handling (oembed.tests.tests.parsers.TextParserTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/parsers.py", line 45, in test_basic_handling
self.assertEqual(parsed, self.category_embed)
AssertionError: u'<a href="http://example.com/testapp/category/1/">http://example.com/testapp/category/1/</a>' != '<img src="http://example.com/media/images/test_image1_800x600.jpg" alt="Category 1" ></img>'
======================================================================
FAIL: test_block_handling (oembed.tests.tests.parsers.TextParserTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/parsers.py", line 53, in test_block_handling
self.assertEqual(parsed, 'Testing <a href="http://example.com/testapp/category/1/">Category 1</a>\n%s' % self.category_embed)
AssertionError: u'Testing <a href="http://example.com/testapp/category/1/">http://example.com/testapp/category/1/</a>\n<a href="http://example.com/testapp/category/1/">http://example.com/testapp/category/1/</a>' != 'Testing <a href="http://example.com/testapp/category/1/">Category 1</a>\n<img src="http://example.com/media/images/test_image1_800x600.jpg" alt="Category 1" ></img>'
======================================================================
FAIL: test_inline_link_handling (oembed.tests.tests.parsers.TextParserTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/dryan/Sites/chattarati_data/libs/oembed/tests/tests/parsers.py", line 49, in test_inline_link_handling
self.assertEqual(parsed, 'Testing <a href="http://example.com/testapp/category/1/">Category 1</a>')
AssertionError: u'Testing <a href="http://example.com/testapp/category/1/">http://example.com/testapp/category/1/</a>' != 'Testing <a href="http://example.com/testapp/category/1/">Category 1</a>'
----------------------------------------------------------------------
Ran 58 tests in 2.626s
FAILED (failures=20, errors=23)
Traceback (most recent call last):
File "./manage.py", line 14, in <module>
execute_manager(settings)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/core/management/__init__.py", line 438, in execute_manager
utility.execute()
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/core/management/__init__.py", line 379, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/core/management/base.py", line 191, in run_from_argv
self.execute(*args, **options.__dict__)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/core/management/base.py", line 220, in execute
output = self.handle(*args, **options)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/South-0.7.3-py2.7.egg/south/management/commands/test.py", line 8, in handle
super(Command, self).handle(*args, **kwargs)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/core/management/commands/test.py", line 37, in handle
failures = test_runner.run_tests(test_labels)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/test/simple.py", line 361, in run_tests
self.teardown_databases(old_config)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/test/simple.py", line 327, in teardown_databases
connection.creation.destroy_test_db(old_name, self.verbosity)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/backends/creation.py", line 452, in destroy_test_db
self._destroy_test_db(test_database_name, verbosity)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/backends/creation.py", line 463, in _destroy_test_db
cursor.execute("DROP DATABASE %s" % self.connection.ops.quote_name(test_database_name))
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/django/db/backends/mysql/base.py", line 86, in execute
return self.cursor.execute(query, args)
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.4-x86_64.egg/MySQLdb/cursors.py", line 176, in execute
if not self._defer_warnings: self._warning_check()
File "/usr/local/Cellar/python/2.7.1/lib/python2.7/site-packages/MySQL_python-1.2.3-py2.7-macosx-10.4-x86_64.egg/MySQLdb/cursors.py", line 92, in _warning_check
warn(w[-1], self.Warning, 3)
_mysql_exceptions.Warning: Cannot load from mysql.proc. The table is probably corrupted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment