Closed
Bug 784047
Opened 12 years ago
Closed 12 years ago
Fix ES tests from mobile-ui merge
Categories
(Marketplace Graveyard :: Search, defect, P3)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: cvan, Assigned: hschlichting)
References
Details
(Whiteboard: p=3)
From the mobile-ui/Gaia merge, we have (at least) 24 broken elasticsearch tests on master.
To run ES tests, in your settings_local_mkt.py add RUN_ES_TESTS=True
%% manage.py test search browse home
/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/conf/__init__.py:72: DeprecationWarning: If set, STATIC_URL must end with a slash
DeprecationWarning)
/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/core/cache/__init__.py:83: DeprecationWarning: settings.CACHE_* is deprecated; use settings.CACHES instead.
DeprecationWarning
nosetests --verbosity 2 search browse home --with-fixture-bundling --where=/Users/chris/Sites/projects/zamboni3/mkt -s --logging-clear-handlers -a!sphinx
Reusing old database "test_zamboni_mkt". Set env var FORCE_DB=1 if you need fresh DBs.
/Users/chris/Sites/projects/zamboni3/vendor/lib/python/celery/decorators.py:34: CDeprecationWarning:
The `celery.decorators` module along with the magic keyword arguments,
are deprecated, and will be removed in version 3.0.
Please use the `celery.task` module instead of `celery.decorators`,
and the `task.request` should be used instead of the magic keyword arguments:
from celery.task import task
See http://bit.ly/celery22major for more information.
"""))
No handlers could be found for logger "rdflib"
/Users/chris/Sites/projects/zamboni3/vendor/lib/python/paypalx/getPermissionsAuthHeader.py:4: DeprecationWarning: the md5 module is deprecated; use hashlib instead
import random,md5,time
/Users/chris/Sites/projects/zamboni3/apps/addons/models.py:308: DeprecationWarning: object.__new__() takes no parameters
return super(Addon, cls).__new__(cls, *args, **kw)
test_dehdryate (zamboni3.mkt.search.tests.test_api.TestApi) ... SETTINGS_LOCAL
ok
test_meta (zamboni3.mkt.search.tests.test_api.TestApi) ... ok
test_others_ignored (zamboni3.mkt.search.tests.test_api.TestApi) ... ok
test_right_category (zamboni3.mkt.search.tests.test_api.TestApi) ... ok
test_right_category_present (zamboni3.mkt.search.tests.test_api.TestApi) ... ok
test_verbs (zamboni3.mkt.search.tests.test_api.TestApi) ... ok
test_wrong_category (zamboni3.mkt.search.tests.test_api.TestApi) ... ok
test_wrong_sort (zamboni3.mkt.search.tests.test_api.TestApi) ... ok
test_wrong_weight (zamboni3.mkt.search.tests.test_api.TestApi) ... ok
test_adolescent_popularity (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... ok
test_case_insensitive (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... ok
test_cat_from_unreviewed_app (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... ok
test_device_all (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... FAIL
test_device_desktop (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... FAIL
test_device_mobile (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... FAIL
test_device_tablet (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... FAIL
test_free_and_inapp_only (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... FAIL
test_free_and_premium (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... FAIL
test_free_and_premium_inapp (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... SKIP
test_free_other (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... FAIL
test_known_cat (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... ERROR
test_mature_popularity (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... FAIL
test_no_cat (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... FAIL
test_page (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... ok
test_paid_price_sort (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... ok
test_premium_inapp_only (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... FAIL
test_premium_only (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... FAIL
test_price_sort_visible_for_free (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... ok
test_price_sort_visible_for_paid_browse (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... ok
test_price_sort_visible_for_paid_search (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... ok
test_redirect_free_price_sort (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... ERROR
test_region_exclusions (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... ok
test_results_downloads (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... ERROR
test_results_item (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... FAIL
test_results_sort_default (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... FAIL
test_results_sort_downloads (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... FAIL
test_results_sort_newest (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... FAIL
test_results_sort_rating (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... FAIL
test_results_sort_unknown (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... FAIL
test_unknown_cat (zamboni3.mkt.search.tests.test_views.TestWebappSearch) ... ERROR
test_bad_cat (zamboni3.mkt.browse.tests.test_views.TestCategoryLanding) ... ok
test_empty_cat (zamboni3.mkt.browse.tests.test_views.TestCategoryLanding) ... SKIP
test_featured (zamboni3.mkt.browse.tests.test_views.TestCategoryLanding) ... SKIP
test_good_cat (zamboni3.mkt.browse.tests.test_views.TestCategoryLanding) ... SKIP
test_popular (zamboni3.mkt.browse.tests.test_views.TestCategoryLanding) ... SKIP
test_popular_region_exclusions (zamboni3.mkt.browse.tests.test_views.TestCategoryLanding) ... SKIP
test_search_category (zamboni3.mkt.browse.tests.test_views.TestCategoryLanding) ... ok
test_bad_cat (zamboni3.mkt.browse.tests.test_views.TestCategorySearch) ... ok
test_good_cat (zamboni3.mkt.browse.tests.test_views.TestCategorySearch) ... SKIP
test_non_indexed_cat (zamboni3.mkt.browse.tests.test_views.TestCategorySearch) ... ok
test_search_category (zamboni3.mkt.browse.tests.test_views.TestCategorySearch) ... ok
test_sidebar (zamboni3.mkt.browse.tests.test_views.TestCategorySearch) ... SKIP
test_sorter (zamboni3.mkt.browse.tests.test_views.TestCategorySearch) ... SKIP
test_featured (zamboni3.mkt.browse.tests.test_views.TestIndexLanding) ... SKIP:
-------------------- >> begin captured logging << --------------------
signals: ERROR: Error calling signal
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/lib/misc/safe_signals.py", line 29, in safe_send
response = receiver(signal=self, sender=sender, **named)
File "/Users/chris/Sites/projects/zamboni3/apps/addons/models.py", line 1403, in update_search_index
tasks.index_addons.delay([instance.id])
File "/Users/chris/Sites/projects/zamboni3/vendor/lib/python/celery/app/task/__init__.py", line 371, in delay
return self.apply_async(args, kwargs)
File "/Users/chris/Sites/projects/zamboni3/vendor/src/nuggets/celeryutils.py", line 22, in apply_async
return super(Task, self).apply_async(args, kwargs, **options)
File "/Users/chris/Sites/projects/zamboni3/vendor/lib/python/celery/app/task/__init__.py", line 463, in apply_async
return self.apply(args, kwargs, task_id=task_id, **options)
File "/Users/chris/Sites/projects/zamboni3/vendor/lib/python/celery/app/task/__init__.py", line 616, in apply
request=request, propagate=throw)
File "/Users/chris/Sites/projects/zamboni3/vendor/lib/python/celery/execute/trace.py", line 220, in eager_trace_task
uuid, args, kwargs, request)
File "/Users/chris/Sites/projects/zamboni3/vendor/lib/python/celery/execute/trace.py", line 153, in trace_task
R = retval = task(*args, **kwargs)
File "/Users/chris/Sites/projects/zamboni3/vendor/src/nuggets/celeryutils.py", line 35, in wrapped
return fun(*args, **kw)
File "/Users/chris/Sites/projects/zamboni3/apps/addons/tasks.py", line 105, in index_addons
Addon.index(search.extract(addon), bulk=True, id=addon.id)
File "/Users/chris/Sites/projects/zamboni3/apps/addons/search.py", line 30, in extract
d = dict(zip(attrs, attrgetter(*attrs)(addon)))
File "/Users/chris/Sites/projects/zamboni3/apps/addons/models.py", line 1356, in uses_flash
f = self.get_latest_file()
File "/Users/chris/Sites/projects/zamboni3/apps/addons/models.py", line 1344, in get_latest_file
cur = self.current_version
File "/Users/chris/Sites/projects/zamboni3/apps/addons/models.py", line 729, in current_version
if not self._current_version:
File "/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/db/models/fields/related.py", line 314, in __get__
rel_obj = rel_mgr.using(db).get(**params)
File "/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/db/models/query.py", line 349, in get
% self.model._meta.object_name)
DoesNotExist: Version matching query does not exist.
--------------------- >> end captured logging << ---------------------
test_featured_region_exclusions (zamboni3.mkt.browse.tests.test_views.TestIndexLanding) ... SKIP
test_good_cat (zamboni3.mkt.browse.tests.test_views.TestIndexLanding) ... SKIP
test_no_flash_on_mobile (zamboni3.mkt.browse.tests.test_views.TestIndexLanding) ... SKIP
test_popular (zamboni3.mkt.browse.tests.test_views.TestIndexLanding) ... SKIP
test_popular_flash (zamboni3.mkt.browse.tests.test_views.TestIndexLanding) ... SKIP
test_popular_region_exclusions (zamboni3.mkt.browse.tests.test_views.TestIndexLanding) ... SKIP
test_bad_sort_option (zamboni3.mkt.browse.tests.test_views.TestIndexSearch) ... ok
test_good_sort_option (zamboni3.mkt.browse.tests.test_views.TestIndexSearch) ... ok
test_page (zamboni3.mkt.browse.tests.test_views.TestIndexSearch) ... SKIP
test_sorter (zamboni3.mkt.browse.tests.test_views.TestIndexSearch) ... SKIP
test_featured (zamboni3.mkt.home.tests.test_views.TestHome) ... /Users/chris/Sites/projects/zamboni3/vendor/src/django/django/contrib/auth/__init__.py:27: DeprecationWarning: Authentication backends without a `supports_inactive_user` attribute are deprecated. Please define it in <class 'django_browserid.auth.BrowserIDBackend'>.
DeprecationWarning)
/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/contrib/auth/__init__.py:27: DeprecationWarning: Authentication backends without a `supports_inactive_user` attribute are deprecated. Please define it in <class 'users.backends.AmoUserBackend'>.
DeprecationWarning)
/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/contrib/auth/__init__.py:27: DeprecationWarning: Authentication backends without a `supports_inactive_user` attribute are deprecated. Please define it in cake.backends.SessionBackend.
DeprecationWarning)
ok
test_featured_fallback_to_worldwide (zamboni3.mkt.home.tests.test_views.TestHome) ... FAIL
test_featured_region_exclusions (zamboni3.mkt.home.tests.test_views.TestHome) ... ok
test_page (zamboni3.mkt.home.tests.test_views.TestHome) ... ok
test_popular (zamboni3.mkt.home.tests.test_views.TestHome) ... SKIP
test_popular_region_exclusions (zamboni3.mkt.home.tests.test_views.TestHome) ... SKIP
test_generator (zamboni3.mkt.search.tests.test_views.TestFilterMobileCompat) ... FAIL
test_mobile_applied_filters (zamboni3.mkt.search.tests.test_views.TestFilterMobileCompat) ... FAIL
test_mobile_no_flash (zamboni3.mkt.search.tests.test_views.TestFilterMobileCompat) ... ok
test_region_exclusions (zamboni3.mkt.search.tests.test_views.TestSuggestions) ... ok
test_webapp_search (zamboni3.mkt.search.tests.test_views.TestSuggestions) ... ok
======================================================================
ERROR: test_known_cat (zamboni3.mkt.search.tests.test_views.TestWebappSearch)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 140, in test_known_cat
self.check_cat_filter({'cat': self.cat.id})
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 113, in check_cat_filter
r = self.client.get(urlparams(self.url, **params))
File "/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/test/client.py", line 445, in get
response = super(Client, self).get(path, data=data, **extra)
File "/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/test/client.py", line 229, in get
return self.request(**r)
File "/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/test/client.py", line 387, in request
response = self.handler(environ)
File "/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/test/client.py", line 84, in __call__
response = self.get_response(request)
File "/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/core/handlers/base.py", line 169, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/chris/Sites/projects/zamboni3/mkt/search/views.py", line 220, in app_search
ctx['featured'] = Webapp.featured(cat=cat)[:3]
File "/Users/chris/Sites/projects/zamboni3/mkt/webapps/models.py", line 374, in featured
qs = qs.filter(category=cat.id if cat else None)
AttributeError: 'int' object has no attribute 'id'
-------------------- >> begin captured logging << --------------------
elasticutils: DEBUG: [2] {'sort': [{'popularity': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 0, 'fields': ['id']}
elasticutils: DEBUG: [4] {'sort': [{'popularity': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 20, 'fields': ['id']}
elasticutils: DEBUG: [25] {'sort': [{'popularity': 'desc'}], 'fields': ['id'], 'facets': {'category': {'terms': {'field': 'category'}}}, 'filter': {'term': {'category': 22}}, 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'size': 0}
elasticutils: DEBUG: [2] {'sort': [{'popularity': 'desc'}], 'fields': ['id'], 'facets': {'category': {'terms': {'field': 'category'}}}, 'filter': {'term': {'category': 22}}, 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'size': 1}
sentry.errors: ERROR: No servers configured, and sentry not installed. Cannot send message
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_redirect_free_price_sort (zamboni3.mkt.search.tests.test_views.TestWebappSearch)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 295, in test_redirect_free_price_sort
r = self.client.get(url, {'price': 'free', 'sort': 'price'})
File "/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/test/client.py", line 445, in get
response = super(Client, self).get(path, data=data, **extra)
File "/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/test/client.py", line 229, in get
return self.request(**r)
File "/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/test/client.py", line 387, in request
response = self.handler(environ)
File "/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/test/client.py", line 84, in __call__
response = self.get_response(request)
File "/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/core/handlers/base.py", line 169, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/chris/Sites/projects/zamboni3/mkt/search/views.py", line 214, in app_search
cat = ctx['query']['cat'] or None
KeyError: "'query'\n-------------------- >> begin captured logging << --------------------\nsentry.errors: ERROR: No servers configured, and sentry not installed. Cannot send message\n--------------------- >> end captured logging << ---------------------"
======================================================================
ERROR: test_results_downloads (zamboni3.mkt.search.tests.test_views.TestWebappSearch)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 104, in test_results_downloads
eq_(dls.text().split()[0],
AttributeError: 'NoneType' object has no attribute 'split'
-------------------- >> begin captured logging << --------------------
elasticutils: DEBUG: [2] {'sort': [{'popularity': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 0, 'fields': ['id']}
elasticutils: DEBUG: [3] {'sort': [{'popularity': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 20, 'fields': ['id']}
--------------------- >> end captured logging << ---------------------
======================================================================
ERROR: test_unknown_cat (zamboni3.mkt.search.tests.test_views.TestWebappSearch)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/vendor/lib/python/mock.py", line 1224, in patched
return func(*args, **keywargs)
File "/Users/chris/Sites/projects/zamboni3/apps/amo/tests/__init__.py", line 190, in decorated
return f(request, *args, **kwargs)
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 145, in test_unknown_cat
r = self.client.get(self.url, {'price': 'free', 'cat': '999'})
File "/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/test/client.py", line 445, in get
response = super(Client, self).get(path, data=data, **extra)
File "/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/test/client.py", line 229, in get
return self.request(**r)
File "/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/test/client.py", line 387, in request
response = self.handler(environ)
File "/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/test/client.py", line 84, in __call__
response = self.get_response(request)
File "/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/core/handlers/base.py", line 169, in get_response
response = self.handle_uncaught_exception(request, resolver, sys.exc_info())
File "/Users/chris/Sites/projects/zamboni3/vendor/src/django/django/core/handlers/base.py", line 111, in get_response
response = callback(request, *callback_args, **callback_kwargs)
File "/Users/chris/Sites/projects/zamboni3/mkt/search/views.py", line 214, in app_search
cat = ctx['query']['cat'] or None
KeyError: "'query'\n-------------------- >> begin captured logging << --------------------\nelasticutils: DEBUG: [3] {'sort': [{'popularity': 'desc'}], 'fields': ['id'], 'facets': {'category': {'terms': {'field': 'category'}}}, 'filter': {'and': [{'term': {'category': 999}}, {'term': {'price': 0}}, {'in': {'premium_type': (0, 3, 4)}}]}, 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'size': 0}\nelasticutils: DEBUG: [2] {'sort': [{'popularity': 'desc'}], 'fields': ['id'], 'facets': {'category': {'terms': {'field': 'category'}}}, 'filter': {'and': [{'term': {'category': 999}}, {'term': {'price': 0}}, {'in': {'premium_type': (0, 3, 4)}}]}, 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'size': 0}\nsentry.errors: ERROR: No servers configured, and sentry not installed. Cannot send message\n--------------------- >> end captured logging << ---------------------"
======================================================================
FAIL: test_device_all (zamboni3.mkt.search.tests.test_views.TestWebappSearch)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 229, in test_device_all
eq_(self.check_device_filter('', 'Any Device'),
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 225, in check_device_filter
amo.tests.check_links(expected, links, selected)
File "/Users/chris/Sites/projects/zamboni3/apps/amo/tests/__init__.py", line 109, in check_links
eq_(e.text(), text)
AssertionError: None != 'Any Device'
-------------------- >> begin captured logging << --------------------
elasticutils: DEBUG: [1] {'sort': [{'popularity': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 0, 'fields': ['id']}
elasticutils: DEBUG: [2] {'sort': [{'popularity': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 6, 'fields': ['id']}
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_device_desktop (zamboni3.mkt.search.tests.test_views.TestWebappSearch)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 233, in test_device_desktop
eq_(self.check_device_filter('desktop', 'Desktop'),
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 225, in check_device_filter
amo.tests.check_links(expected, links, selected)
File "/Users/chris/Sites/projects/zamboni3/apps/amo/tests/__init__.py", line 109, in check_links
eq_(e.text(), text)
AssertionError: None != 'Any Device'
-------------------- >> begin captured logging << --------------------
elasticutils: DEBUG: [53] {'sort': [{'popularity': 'desc'}], 'fields': ['id'], 'facets': {'category': {'terms': {'field': 'category'}}}, 'filter': {'term': {'device': 1}}, 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'size': 0}
elasticutils: DEBUG: [1] {'sort': [{'popularity': 'desc'}], 'fields': ['id'], 'facets': {'category': {'terms': {'field': 'category'}}}, 'filter': {'term': {'device': 1}}, 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'size': 3}
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_device_mobile (zamboni3.mkt.search.tests.test_views.TestWebappSearch)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 237, in test_device_mobile
eq_(self.check_device_filter('mobile', 'Mobile'),
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 225, in check_device_filter
amo.tests.check_links(expected, links, selected)
File "/Users/chris/Sites/projects/zamboni3/apps/amo/tests/__init__.py", line 109, in check_links
eq_(e.text(), text)
AssertionError: None != 'Any Device'
-------------------- >> begin captured logging << --------------------
elasticutils: DEBUG: [2] {'sort': [{'popularity': 'desc'}], 'fields': ['id'], 'facets': {'category': {'terms': {'field': 'category'}}}, 'filter': {'term': {'device': 2}}, 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'size': 0}
elasticutils: DEBUG: [2] {'sort': [{'popularity': 'desc'}], 'fields': ['id'], 'facets': {'category': {'terms': {'field': 'category'}}}, 'filter': {'term': {'device': 2}}, 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'size': 4}
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_device_tablet (zamboni3.mkt.search.tests.test_views.TestWebappSearch)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 241, in test_device_tablet
eq_(self.check_device_filter('tablet', 'Tablet'),
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 225, in check_device_filter
amo.tests.check_links(expected, links, selected)
File "/Users/chris/Sites/projects/zamboni3/apps/amo/tests/__init__.py", line 109, in check_links
eq_(e.text(), text)
AssertionError: None != 'Any Device'
-------------------- >> begin captured logging << --------------------
elasticutils: DEBUG: [3] {'sort': [{'popularity': 'desc'}], 'fields': ['id'], 'facets': {'category': {'terms': {'field': 'category'}}}, 'filter': {'term': {'device': 3}}, 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'size': 0}
elasticutils: DEBUG: [3] {'sort': [{'popularity': 'desc'}], 'fields': ['id'], 'facets': {'category': {'terms': {'field': 'category'}}}, 'filter': {'term': {'device': 3}}, 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'size': 5}
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_free_and_inapp_only (zamboni3.mkt.search.tests.test_views.TestWebappSearch)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 188, in test_free_and_inapp_only
amo.ADDON_FREE_INAPP), self.free)
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 175, in check_price_filter
amo.tests.check_links(expected, links, selected)
File "/Users/chris/Sites/projects/zamboni3/apps/amo/tests/__init__.py", line 109, in check_links
eq_(e.text(), text)
AssertionError: None != 'Any Price'
-------------------- >> begin captured logging << --------------------
elasticutils: DEBUG: [8] {'sort': [{'popularity': 'desc'}], 'fields': ['id'], 'facets': {'category': {'terms': {'field': 'category'}}}, 'filter': {'and': [{'term': {'price': 0}}, {'in': {'premium_type': (0, 3, 4)}}]}, 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'size': 0}
elasticutils: DEBUG: [6] {'sort': [{'popularity': 'desc'}], 'fields': ['id'], 'facets': {'category': {'terms': {'field': 'category'}}}, 'filter': {'and': [{'term': {'price': 0}}, {'in': {'premium_type': (0, 3, 4)}}]}, 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'size': 18}
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_free_and_premium (zamboni3.mkt.search.tests.test_views.TestWebappSearch)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 179, in test_free_and_premium
eq_(self.check_price_filter('', 'Any Price'), self.both)
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 175, in check_price_filter
amo.tests.check_links(expected, links, selected)
File "/Users/chris/Sites/projects/zamboni3/apps/amo/tests/__init__.py", line 109, in check_links
eq_(e.text(), text)
AssertionError: None != 'Any Price'
-------------------- >> begin captured logging << --------------------
elasticutils: DEBUG: [2] {'sort': [{'popularity': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 0, 'fields': ['id']}
elasticutils: DEBUG: [3] {'sort': [{'popularity': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 20, 'fields': ['id']}
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_free_other (zamboni3.mkt.search.tests.test_views.TestWebappSearch)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 199, in test_free_other
amo.ADDON_OTHER_INAPP), self.free)
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 175, in check_price_filter
amo.tests.check_links(expected, links, selected)
File "/Users/chris/Sites/projects/zamboni3/apps/amo/tests/__init__.py", line 109, in check_links
eq_(e.text(), text)
AssertionError: None != 'Any Price'
-------------------- >> begin captured logging << --------------------
elasticutils: DEBUG: [305] {'sort': [{'popularity': 'desc'}], 'fields': ['id'], 'facets': {'category': {'terms': {'field': 'category'}}}, 'filter': {'and': [{'term': {'price': 0}}, {'in': {'premium_type': (0, 3, 4)}}]}, 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'size': 0}
elasticutils: DEBUG: [3] {'sort': [{'popularity': 'desc'}], 'fields': ['id'], 'facets': {'category': {'terms': {'field': 'category'}}}, 'filter': {'and': [{'term': {'price': 0}}, {'in': {'premium_type': (0, 3, 4)}}]}, 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'size': 20}
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_mature_popularity (zamboni3.mkt.search.tests.test_views.TestWebappSearch)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/vendor/lib/python/mock.py", line 1224, in patched
return func(*args, **keywargs)
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 380, in test_mature_popularity
{'id': unknown2.id, 'popularity_7': 2}])
AssertionError: [{u'id': 337178, u'popularity_7': 22}, {u'id': 337141, u'popularity_7': 12}, {u'id': 337142, u'popularity_7': 11}, {u'id': 337143, u'popularity_7': 2}, {u'id': 337179, u'popularity_7': 2}, {u'id': 337146, u'popularity_7': 0}, {u'id': 337153, u'popularity_7': 0}, {u'id': 337158, u'popularity_7': 0}, {u'id': 337165, u'popularity_7': 0}, {u'id': 337172, u'popularity_7': 0}, {u'id': 337145, u'popularity_7': 0}, {u'id': 337152, u'popularity_7': 0}, {u'id': 337157, u'popularity_7': 0}, {u'id': 337164, u'popularity_7': 0}, {u'id': 337171, u'popularity_7': 0}, {u'id': 337149, u'popularity_7': 0}, {u'id': 337151, u'popularity_7': 0}, {u'id': 337156, u'popularity_7': 0}, {u'id': 337148, u'popularity_7': 0}, {u'id': 337150, u'popularity_7': 0}] != [{'id': 337178L, 'popularity_7': 22}, {'id': 337141L, 'popularity_7': 12}, {'id': 337179L, 'popularity_7': 2}]
-------------------- >> begin captured logging << --------------------
elasticutils: DEBUG: [4] {'sort': [{'popularity_7': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 0, 'fields': ['id']}
elasticutils: DEBUG: [5] {'sort': [{'popularity_7': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 20, 'fields': ['id']}
elasticutils: DEBUG: [4] {'sort': [{'popularity_7': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 20, 'fields': ['id', 'popularity_7']}
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_no_cat (zamboni3.mkt.search.tests.test_views.TestWebappSearch)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 137, in test_no_cat
self.check_cat_filter({})
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 121, in check_cat_filter
"'Any Category' should be selected")
AssertionError: 'Any Category' should be selected
-------------------- >> begin captured logging << --------------------
elasticutils: DEBUG: [5] {'sort': [{'popularity': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 0, 'fields': ['id']}
elasticutils: DEBUG: [11] {'sort': [{'popularity': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 20, 'fields': ['id']}
elasticutils: DEBUG: [3] {'sort': [{'popularity': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 0, 'fields': ['id']}
elasticutils: DEBUG: [7] {'sort': [{'popularity': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 20, 'fields': ['id']}
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_premium_inapp_only (zamboni3.mkt.search.tests.test_views.TestWebappSearch)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 195, in test_premium_inapp_only
amo.ADDON_PREMIUM_INAPP), self.paid)
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 175, in check_price_filter
amo.tests.check_links(expected, links, selected)
File "/Users/chris/Sites/projects/zamboni3/apps/amo/tests/__init__.py", line 109, in check_links
eq_(e.text(), text)
AssertionError: None != 'Any Price'
-------------------- >> begin captured logging << --------------------
elasticutils: DEBUG: [4] {'sort': [{'popularity': 'desc'}], 'fields': ['id'], 'facets': {'category': {'terms': {'field': 'category'}}}, 'filter': {'in': {'premium_type': (1, 2)}}, 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'size': 0}
elasticutils: DEBUG: [3] {'sort': [{'popularity': 'desc'}], 'fields': ['id'], 'facets': {'category': {'terms': {'field': 'category'}}}, 'filter': {'in': {'premium_type': (1, 2)}}, 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'size': 4}
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_premium_only (zamboni3.mkt.search.tests.test_views.TestWebappSearch)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 191, in test_premium_only
eq_(self.check_price_filter('paid', 'Premium Only'), self.paid)
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 175, in check_price_filter
amo.tests.check_links(expected, links, selected)
File "/Users/chris/Sites/projects/zamboni3/apps/amo/tests/__init__.py", line 109, in check_links
eq_(e.text(), text)
AssertionError: None != 'Any Price'
-------------------- >> begin captured logging << --------------------
elasticutils: DEBUG: [2] {'sort': [{'popularity': 'desc'}], 'fields': ['id'], 'facets': {'category': {'terms': {'field': 'category'}}}, 'filter': {'in': {'premium_type': (1, 2)}}, 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'size': 0}
elasticutils: DEBUG: [345] {'sort': [{'popularity': 'desc'}], 'fields': ['id'], 'facets': {'category': {'terms': {'field': 'category'}}}, 'filter': {'in': {'premium_type': (1, 2)}}, 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'size': 6}
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_results_item (zamboni3.mkt.search.tests.test_views.TestWebappSearch)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 94, in test_results_item
eq_(item.length, 1)
AssertionError: 0 != 1
-------------------- >> begin captured logging << --------------------
elasticutils: DEBUG: [2] {'sort': [{'popularity': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 0, 'fields': ['id']}
elasticutils: DEBUG: [2] {'sort': [{'popularity': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 20, 'fields': ['id']}
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_results_sort_default (zamboni3.mkt.search.tests.test_views.TestWebappSearch)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 246, in test_results_sort_default
self.check_sort_links(None, 'Relevance', 'popularity')
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 43, in check_sort_links
eq_(doc('#sorter .selected').text(), title)
AssertionError: None != 'Relevance'
-------------------- >> begin captured logging << --------------------
elasticutils: DEBUG: [4] {'sort': [{'popularity': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 0, 'fields': ['id']}
elasticutils: DEBUG: [6] {'sort': [{'popularity': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 20, 'fields': ['id']}
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_results_sort_downloads (zamboni3.mkt.search.tests.test_views.TestWebappSearch)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 255, in test_results_sort_downloads
'weekly_downloads')
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 43, in check_sort_links
eq_(doc('#sorter .selected').text(), title)
AssertionError: None != 'Weekly Downloads'
-------------------- >> begin captured logging << --------------------
elasticutils: DEBUG: [2] {'sort': [{'weekly_downloads': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 0, 'fields': ['id']}
elasticutils: DEBUG: [3] {'sort': [{'weekly_downloads': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 20, 'fields': ['id']}
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_results_sort_newest (zamboni3.mkt.search.tests.test_views.TestWebappSearch)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 263, in test_results_sort_newest
self.check_sort_links('created', 'Newest', 'created')
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 43, in check_sort_links
eq_(doc('#sorter .selected').text(), title)
AssertionError: None != 'Newest'
-------------------- >> begin captured logging << --------------------
elasticutils: DEBUG: [2] {'sort': [{'created': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 0, 'fields': ['id']}
elasticutils: DEBUG: [3] {'sort': [{'created': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 20, 'fields': ['id']}
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_results_sort_rating (zamboni3.mkt.search.tests.test_views.TestWebappSearch)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 259, in test_results_sort_rating
self.check_sort_links('rating', 'Top Rated', 'bayesian_rating')
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 43, in check_sort_links
eq_(doc('#sorter .selected').text(), title)
AssertionError: None != 'Top Rated'
-------------------- >> begin captured logging << --------------------
elasticutils: DEBUG: [2] {'sort': [{'bayesian_rating': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 0, 'fields': ['id']}
elasticutils: DEBUG: [3] {'sort': [{'bayesian_rating': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 20, 'fields': ['id']}
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_results_sort_unknown (zamboni3.mkt.search.tests.test_views.TestWebappSearch)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 250, in test_results_sort_unknown
self.check_sort_links('xxx', 'Relevance')
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 43, in check_sort_links
eq_(doc('#sorter .selected').text(), title)
AssertionError: None != 'Relevance'
-------------------- >> begin captured logging << --------------------
elasticutils: DEBUG: [2] {'sort': [{'popularity': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 0, 'fields': ['id']}
elasticutils: DEBUG: [2] {'sort': [{'popularity': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 20, 'fields': ['id']}
--------------------- >> end captured logging << ---------------------
======================================================================
FAIL: test_featured_fallback_to_worldwide (zamboni3.mkt.home.tests.test_views.TestHome)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/vendor/lib/python/mock.py", line 1224, in patched
return func(*args, **keywargs)
File "/Users/chris/Sites/projects/zamboni3/apps/amo/tests/__init__.py", line 190, in decorated
return f(request, *args, **kwargs)
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/home/tests/test_views.py", line 52, in test_featured_fallback_to_worldwide
expected)
AssertionError: [337147L, 337148L, 337149L, 337150L, 337152L, 337153L] != [337147L, 337148L, 337149L, 337150L, 337151L, 337152L]
======================================================================
FAIL: test_generator (zamboni3.mkt.search.tests.test_views.TestFilterMobileCompat)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 519, in test_generator
func(*params)
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 492, in test_url
"Couldn't find mobile app for %s" % url)
AssertionError: Couldn't find mobile app for /?mobile=false
======================================================================
FAIL: test_mobile_applied_filters (zamboni3.mkt.search.tests.test_views.TestFilterMobileCompat)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/chris/Sites/projects/zamboni3/../zamboni3/mkt/search/tests/test_views.py", line 535, in test_mobile_applied_filters
assert p_desktop('#device-facets')
AssertionError:
-------------------- >> begin captured logging << --------------------
elasticutils: DEBUG: [1] {'sort': [{'popularity': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 0, 'fields': ['id']}
elasticutils: DEBUG: [1] {'sort': [{'popularity': 'desc'}], 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'facets': {'category': {'terms': {'field': 'category'}}}, 'size': 2, 'fields': ['id']}
elasticutils: DEBUG: [1] {'sort': [{'popularity': 'desc'}], 'fields': ['id'], 'facets': {'category': {'terms': {'field': 'category'}}}, 'filter': {'and': [{'term': {'uses_flash': False}}, {'term': {'device': 2}}]}, 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'size': 0}
elasticutils: DEBUG: [1] {'sort': [{'popularity': 'desc'}], 'fields': ['id'], 'facets': {'category': {'terms': {'field': 'category'}}}, 'filter': {'and': [{'term': {'uses_flash': False}}, {'term': {'device': 2}}]}, 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'size': 1}
elasticutils: DEBUG: [1] {'sort': [{'popularity': 'desc'}], 'fields': ['id'], 'facets': {'category': {'terms': {'field': 'category'}}}, 'filter': {'and': [{'term': {'uses_flash': False}}, {'term': {'device': 2}}]}, 'query': {'bool': {'must': [{'term': {'status': 4}}, {'term': {'is_disabled': False}}, {'term': {'type': 11}}]}}, 'size': 1}
--------------------- >> end captured logging << ---------------------
----------------------------------------------------------------------
Ran 75 tests in 97.099s
FAILED (SKIP=20, errors=4, failures=20)
Reporter | ||
Updated•12 years ago
|
Updated•12 years ago
|
Assignee: nobody → kumar.mcmillan
Target Milestone: 2012-08-23 → 2012-08-30
Updated•12 years ago
|
Target Milestone: 2012-08-30 → 2012-09-06
Updated•12 years ago
|
Target Milestone: 2012-09-06 → 2012-09-20
Updated•12 years ago
|
Target Milestone: 2012-09-20 → 2012-09-27
Reporter | ||
Comment 1•12 years ago
|
||
Fixed broken tests in `home` and `browse`: https://github.com/mozilla/zamboni/commit/813666b
Reporter | ||
Comment 2•12 years ago
|
||
Fixed a few tests in `search`:
https://github.com/mozilla/zamboni/commit/4b03216
Updated•12 years ago
|
Assignee: kumar.mcmillan → nobody
Updated•12 years ago
|
Target Milestone: 2012-09-27 → ---
Updated•12 years ago
|
Updated•12 years ago
|
Component: Code Quality → Search
Reporter | ||
Comment 3•12 years ago
|
||
Hanno has totally fixed these. Thank you!
Assignee: nobody → hschlichting
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•