Python 3.7 Upgrade #92
89 fail, 35 skipped, 5 274 pass in 25m 40s
5 398 tests 5 274 ✅ 25m 40s ⏱️
1 suites 35 💤
1 files 89 ❌
Results for commit 6232e04.
Annotations
Check warning on line 53 in src/olympia/amo/tests/test_fields.py
github-actions / Python 2.7 Test Results
test_db_field_properties (src.olympia.amo.tests.test_fields.TestPositiveAutoField) failed
src/test_report.xml [took 0s]
Raw output
AssertionError: assert 'int unsigned' == 'int(10) unsigned' - int unsigned + int(10) unsigned ? ++++
src/olympia/amo/tests/test_fields.py:64: in test_db_field_properties
assert column_type == 'int(10) unsigned'
E AssertionError: assert 'int unsigned' == 'int(10) unsigned'
E - int unsigned
E + int(10) unsigned
E ? ++++
Check warning on line 219 in src/olympia/amo/tests/test_helpers.py
github-actions / Python 2.7 Test Results
test_urlparams_unicode (src.olympia.amo.tests.test_helpers) failed
src/test_report.xml [took 0s]
Raw output
UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 13: ordinal not in range(128)
src/olympia/amo/tests/test_helpers.py:222: in test_urlparams_unicode
utils.urlparams(url)
src/olympia/amo/utils.py:85: in urlparams
url = django_urlparse(force_str(url_))
/usr/local/lib/python2.7/site-packages/django/utils/http.py:342: in _urlparse
splitresult = _urlsplit(url, scheme, allow_fragments)
/usr/local/lib/python2.7/site-packages/django/utils/http.py:364: in _urlsplit
i = url.find(':')
E UnicodeDecodeError: 'ascii' codec can't decode byte 0xef in position 13: ordinal not in range(128)
Check warning on line 85 in src/olympia/amo/tests/test_middleware.py
github-actions / Python 2.7 Test Results
test_source_with_wrong_unicode_get (src.olympia.amo.tests.test_middleware) failed
src/test_report.xml [took 0s]
Raw output
AttributeError: 'WSGIRequest' object has no attribute 'is_legacy_api'
src/olympia/amo/tests/test_middleware.py:88: in test_source_with_wrong_unicode_get
response = test.Client().get('/firefox/collections/mozmj/autumn/'
/usr/local/lib/python2.7/site-packages/django/test/client.py:536: in get
**extra)
/usr/local/lib/python2.7/site-packages/django/test/client.py:340: in get
return self.generic('GET', path, secure=secure, **r)
/usr/local/lib/python2.7/site-packages/django/test/client.py:416: in generic
return self.request(**r)
/usr/local/lib/python2.7/site-packages/django/test/client.py:483: in request
response = self.handler(environ)
/usr/local/lib/python2.7/site-packages/django/test/client.py:144: in __call__
response = self.get_response(request)
/usr/local/lib/python2.7/site-packages/django/core/handlers/base.py:124: in get_response
response = self._middleware_chain(request)
/usr/local/lib/python2.7/site-packages/django/core/handlers/exception.py:43: in inner
response = response_for_exception(request, exc)
/usr/local/lib/python2.7/site-packages/django/core/handlers/exception.py:93: in response_for_exception
response = handle_uncaught_exception(request, get_resolver(get_urlconf()), sys.exc_info())
/usr/local/lib/python2.7/site-packages/django/core/handlers/exception.py:143: in handle_uncaught_exception
return callback(request, **param_dict)
src/olympia/amo/views.py:92: in handler500
if request.is_legacy_api:
E AttributeError: 'WSGIRequest' object has no attribute 'is_legacy_api'
Check warning on line 93 in src/olympia/amo/tests/test_middleware.py
github-actions / Python 2.7 Test Results
test_trailing_slash_middleware (src.olympia.amo.tests.test_middleware) failed
src/test_report.xml [took 0s]
Raw output
AssertionError: assert False + where False = <built-in method endswith of str object at 0x7f8d2e8d0230>('/en-US/about?xxx=%C3%83%C2%83') + where <built-in method endswith of str object at 0x7f8d2e8d0230> = '/en-US/about?xxx=%C3%83'.endswith
src/olympia/amo/tests/test_middleware.py:97: in test_trailing_slash_middleware
assert response['Location'].endswith('/en-US/about?xxx=%C3%83%C2%83')
E AssertionError: assert False
E + where False = <built-in method endswith of str object at 0x7f8d2e8d0230>('/en-US/about?xxx=%C3%83%C2%83')
E + where <built-in method endswith of str object at 0x7f8d2e8d0230> = '/en-US/about?xxx=%C3%83'.endswith
Check warning on line 95 in src/olympia/amo/tests/test_pagination.py
github-actions / Python 2.7 Test Results
test_invalid_page (src.olympia.amo.tests.test_pagination.TestSearchPaginator) failed
src/test_report.xml [took 0s]
Raw output
AssertionError: assert InvalidPage('That page number is too high for the current page size',) == 'That page number is too high for the current page size' + where InvalidPage('That page number is too high for the current page size',) = <ExceptionInfo InvalidPage tblen=2>.value
src/olympia/amo/tests/test_pagination.py:112: in test_invalid_page
assert (
E AssertionError: assert InvalidPage('That page number is too high for the current page size',) == 'That page number is too high for the current page size'
E + where InvalidPage('That page number is too high for the current page size',) = <ExceptionInfo InvalidPage tblen=2>.value
Check warning on line 289 in src/olympia/amo/tests/test_send_mail.py
github-actions / Python 2.7 Test Results
test_async_will_stop_retrying (src.olympia.amo.tests.test_send_mail.TestSendMail) failed
src/test_report.xml [took 0s]
Raw output
StopIteration
src/olympia/amo/tests/test_send_mail.py:297: in test_async_will_stop_retrying
recipient_list=['somebody@mozilla.org'])
src/olympia/amo/utils.py:292: in send_mail
html_message=html_message, attachments=attachments)
src/olympia/amo/utils.py:249: in send
return send_email.delay(*args, **kwargs)
/usr/local/lib/python2.7/site-packages/celery/app/task.py:412: in delay
return self.apply_async(args, kwargs)
src/olympia/amo/celery.py:68: in apply_async
args=args, kwargs=kwargs, **options)
/usr/local/lib/python2.7/site-packages/post_request_task/task.py:102: in apply_async
args=args, kwargs=kwargs, **extrakw)
/usr/local/lib/python2.7/site-packages/post_request_task/task.py:95: in original_apply_async
args=args, kwargs=kwargs, **extrakw)
/usr/local/lib/python2.7/site-packages/celery/app/task.py:522: in apply_async
link=link, link_error=link_error, **options)
src/olympia/amo/celery.py:75: in apply
return super(AMOTask, self).apply(args=args, kwargs=kwargs, **options)
/usr/local/lib/python2.7/site-packages/celery/app/task.py:740: in apply
ret = tracer(task_id, args, kwargs, request)
/usr/local/lib/python2.7/site-packages/celery/app/trace.py:389: in trace_task
I, R, state, retval = on_error(task_request, exc, uuid)
/usr/local/lib/python2.7/site-packages/celery/app/trace.py:375: in trace_task
R = retval = fun(*args, **kwargs)
src/olympia/amo/tasks.py:38: in send_email
send_email.retry()
/usr/local/lib/python2.7/site-packages/celery/app/task.py:678: in retry
S.apply().get()
/usr/local/lib/python2.7/site-packages/celery/canvas.py:192: in apply
return self.type.apply(args, kwargs, **options)
src/olympia/amo/celery.py:75: in apply
return super(AMOTask, self).apply(args=args, kwargs=kwargs, **options)
/usr/local/lib/python2.7/site-packages/celery/app/task.py:740: in apply
ret = tracer(task_id, args, kwargs, request)
/usr/local/lib/python2.7/site-packages/celery/app/trace.py:389: in trace_task
I, R, state, retval = on_error(task_request, exc, uuid)
/usr/local/lib/python2.7/site-packages/celery/app/trace.py:375: in trace_task
R = retval = fun(*args, **kwargs)
src/olympia/amo/tasks.py:38: in send_email
send_email.retry()
/usr/local/lib/python2.7/site-packages/celery/app/task.py:678: in retry
S.apply().get()
/usr/local/lib/python2.7/site-packages/celery/canvas.py:192: in apply
return self.type.apply(args, kwargs, **options)
src/olympia/amo/celery.py:75: in apply
return super(AMOTask, self).apply(args=args, kwargs=kwargs, **options)
/usr/local/lib/python2.7/site-packages/celery/app/task.py:740: in apply
ret = tracer(task_id, args, kwargs, request)
/usr/local/lib/python2.7/site-packages/celery/app/trace.py:389: in trace_task
I, R, state, retval = on_error(task_request, exc, uuid)
/usr/local/lib/python2.7/site-packages/celery/app/trace.py:375: in trace_task
R = retval = fun(*args, **kwargs)
src/olympia/amo/tasks.py:29: in send_email
attachments=attachments, reply_to=reply_to)
/usr/local/lib/python2.7/site-packages/mock/mock.py:1062: in __call__
return _mock_self._mock_call(*args, **kwargs)
/usr/local/lib/python2.7/site-packages/mock/mock.py:1128: in _mock_call
ret_val = effect(*args, **kwargs)
src/olympia/amo/tests/test_send_mail.py:257: in make_backend
if next(throw_error):
E StopIteration
Check warning on line 1096 in src/olympia/browse/tests.py
github-actions / Python 2.7 Test Results
test_does_not_500_in_development (src.olympia.browse.tests.TestPersonas) failed
src/test_report.xml [took 0s]
Raw output
AssertionError: No templates used to render the response
src/olympia/browse/tests.py:1099: in test_does_not_500_in_development
self.test_personas_grid()
src/olympia/browse/tests.py:1110: in test_personas_grid
self.assertTemplateUsed(response, self.grid_template)
/usr/local/lib/python2.7/site-packages/django/test/testcases.py:578: in assertTemplateUsed
self.fail(msg_prefix + "No templates used to render the response")
E AssertionError: No templates used to render the response
Check warning on line 1163 in src/olympia/browse/tests.py
github-actions / Python 2.7 Test Results
test_only_popular_persona_are_shown_in_up_and_coming (src.olympia.browse.tests.TestPersonas) failed
src/test_report.xml [took 0s]
Raw output
AttributeError: 'NoneType' object has no attribute 'getroottree'
src/olympia/browse/tests.py:1166: in test_only_popular_persona_are_shown_in_up_and_coming
personas = pq(r.content).find('.persona-preview')
/usr/local/lib/python2.7/site-packages/pyquery/pyquery.py:255: in __init__
elements = fromstring(context, self.parser)
/usr/local/lib/python2.7/site-packages/pyquery/pyquery.py:99: in fromstring
result = getattr(lxml.html, meth)(context)
/usr/local/lib/python2.7/site-packages/lxml/html/__init__.py:876: in fromstring
doc = document_fromstring(html, parser=parser, base_url=base_url, **kw)
/usr/local/lib/python2.7/site-packages/lxml/html/__init__.py:762: in document_fromstring
value = etree.fromstring(html, parser, **kw)
/usr/local/lib/python2.7/site-packages/defusedxml/lxml.py:144: in fromstring
elementtree = rootelement.getroottree()
E AttributeError: 'NoneType' object has no attribute 'getroottree'
Check warning on line 1193 in src/olympia/browse/tests.py
github-actions / Python 2.7 Test Results
test_pagination_in_created (src.olympia.browse.tests.TestPersonas) failed
src/test_report.xml [took 0s]
Raw output
TypeError: 'NoneType' object has no attribute '__getitem__'
src/olympia/browse/tests.py:1196: in test_pagination_in_created
assert str(r.context['addons']) == '<Page 1 of 1>'
E TypeError: 'NoneType' object has no attribute '__getitem__'
Check warning on line 378 in ../../usr/local/lib/python2.7/site-packages/django/test/utils.py
github-actions / Python 2.7 Test Results
test_pagination_in_up_and_coming (src.olympia.browse.tests.TestPersonas) failed
src/test_report.xml [took 0s]
Raw output
TypeError: 'NoneType' object has no attribute '__getitem__'
/usr/local/lib/python2.7/site-packages/django/test/utils.py:384: in inner
return func(*args, **kwargs)
src/olympia/browse/tests.py:1180: in test_pagination_in_up_and_coming
assert str(r.context['addons']) == '<Page 1 of 1>'
E TypeError: 'NoneType' object has no attribute '__getitem__'
Check warning on line 1147 in src/olympia/browse/tests.py
github-actions / Python 2.7 Test Results
test_personas_category_landing_frozen (src.olympia.browse.tests.TestPersonas) failed
src/test_report.xml [took 0s]
Raw output
AttributeError: 'NoneType' object has no attribute 'getroottree'
src/olympia/browse/tests.py:1152: in test_personas_category_landing_frozen
personas = pq(r.content).find('.persona-preview')
/usr/local/lib/python2.7/site-packages/pyquery/pyquery.py:255: in __init__
elements = fromstring(context, self.parser)
/usr/local/lib/python2.7/site-packages/pyquery/pyquery.py:99: in fromstring
result = getattr(lxml.html, meth)(context)
/usr/local/lib/python2.7/site-packages/lxml/html/__init__.py:876: in fromstring
doc = document_fromstring(html, parser=parser, base_url=base_url, **kw)
/usr/local/lib/python2.7/site-packages/lxml/html/__init__.py:762: in document_fromstring
value = etree.fromstring(html, parser, **kw)
/usr/local/lib/python2.7/site-packages/defusedxml/lxml.py:144: in fromstring
elementtree = rootelement.getroottree()
E AttributeError: 'NoneType' object has no attribute 'getroottree'
Check warning on line 1101 in src/olympia/browse/tests.py
github-actions / Python 2.7 Test Results
test_personas_grid (src.olympia.browse.tests.TestPersonas) failed
src/test_report.xml [took 0s]
Raw output
AssertionError: No templates used to render the response
src/olympia/browse/tests.py:1110: in test_personas_grid
self.assertTemplateUsed(response, self.grid_template)
/usr/local/lib/python2.7/site-packages/django/test/testcases.py:578: in assertTemplateUsed
self.fail(msg_prefix + "No templates used to render the response")
E AssertionError: No templates used to render the response
Check warning on line 1133 in src/olympia/browse/tests.py
github-actions / Python 2.7 Test Results
test_personas_grid_sorting (src.olympia.browse.tests.TestPersonas) failed
src/test_report.xml [took 0s]
Raw output
AssertionError: No templates used to render the response
src/olympia/browse/tests.py:1141: in test_personas_grid_sorting
self.assertTemplateUsed(r, self.grid_template)
/usr/local/lib/python2.7/site-packages/django/test/testcases.py:578: in assertTemplateUsed
self.fail(msg_prefix + "No templates used to render the response")
E AssertionError: No templates used to render the response
Check warning on line 1113 in src/olympia/browse/tests.py
github-actions / Python 2.7 Test Results
test_personas_landing (src.olympia.browse.tests.TestPersonas) failed
src/test_report.xml [took 0s]
Raw output
AssertionError: No templates used to render the response
src/olympia/browse/tests.py:1124: in test_personas_landing
self.assertTemplateUsed(r, self.landing_template)
/usr/local/lib/python2.7/site-packages/django/test/testcases.py:578: in assertTemplateUsed
self.fail(msg_prefix + "No templates used to render the response")
E AssertionError: No templates used to render the response
Check warning on line 47 in ../../usr/local/lib/python2.7/site-packages/waffle/testutils.py
github-actions / Python 2.7 Test Results
test_submit_theme_link_lwt_disabled (src.olympia.browse.tests.TestPersonas) failed
src/test_report.xml [took 0s]
Raw output
AttributeError: 'NoneType' object has no attribute 'getroottree'
/usr/local/lib/python2.7/site-packages/waffle/testutils.py:51: in _wrapped
return func(*args, **kwargs)
src/olympia/browse/tests.py:1212: in test_submit_theme_link_lwt_disabled
doc = pq(response.content)
/usr/local/lib/python2.7/site-packages/pyquery/pyquery.py:255: in __init__
elements = fromstring(context, self.parser)
/usr/local/lib/python2.7/site-packages/pyquery/pyquery.py:99: in fromstring
result = getattr(lxml.html, meth)(context)
/usr/local/lib/python2.7/site-packages/lxml/html/__init__.py:876: in fromstring
doc = document_fromstring(html, parser=parser, base_url=base_url, **kw)
/usr/local/lib/python2.7/site-packages/lxml/html/__init__.py:762: in document_fromstring
value = etree.fromstring(html, parser, **kw)
/usr/local/lib/python2.7/site-packages/defusedxml/lxml.py:144: in fromstring
elementtree = rootelement.getroottree()
E AttributeError: 'NoneType' object has no attribute 'getroottree'
Check warning on line 47 in ../../usr/local/lib/python2.7/site-packages/waffle/testutils.py
github-actions / Python 2.7 Test Results
test_submit_theme_link_lwt_enabled (src.olympia.browse.tests.TestPersonas) failed
src/test_report.xml [took 0s]
Raw output
AttributeError: 'NoneType' object has no attribute 'getroottree'
/usr/local/lib/python2.7/site-packages/waffle/testutils.py:51: in _wrapped
return func(*args, **kwargs)
src/olympia/browse/tests.py:1204: in test_submit_theme_link_lwt_enabled
doc = pq(response.content)
/usr/local/lib/python2.7/site-packages/pyquery/pyquery.py:255: in __init__
elements = fromstring(context, self.parser)
/usr/local/lib/python2.7/site-packages/pyquery/pyquery.py:99: in fromstring
result = getattr(lxml.html, meth)(context)
/usr/local/lib/python2.7/site-packages/lxml/html/__init__.py:876: in fromstring
doc = document_fromstring(html, parser=parser, base_url=base_url, **kw)
/usr/local/lib/python2.7/site-packages/lxml/html/__init__.py:762: in document_fromstring
value = etree.fromstring(html, parser, **kw)
/usr/local/lib/python2.7/site-packages/defusedxml/lxml.py:144: in fromstring
elementtree = rootelement.getroottree()
E AttributeError: 'NoneType' object has no attribute 'getroottree'
Check warning on line 1088 in src/olympia/browse/tests.py
github-actions / Python 2.7 Test Results
test_try_new_frontend_banner_presence (src.olympia.browse.tests.TestPersonas) failed
src/test_report.xml [took 0s]
Raw output
AssertionError: assert 'AMO is getting a new look.' in '' + where '' = <HttpResponsePermanentRedirect status_code=301, "text/html; charset=utf-8", url="/en-US/firefox/static-themes/">.content
src/olympia/browse/tests.py:1095: in test_try_new_frontend_banner_presence
assert 'AMO is getting a new look.' in response.content
E AssertionError: assert 'AMO is getting a new look.' in ''
E + where '' = <HttpResponsePermanentRedirect status_code=301, "text/html; charset=utf-8", url="/en-US/firefox/static-themes/">.content
Check warning on line 81 in src/olympia/devhub/tests/test_helpers.py
github-actions / Python 2.7 Test Results
test_unicode (src.olympia.devhub.tests.test_helpers.TestDisplayUrl) failed
src/test_report.xml [took 0s]
Raw output
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 0: ordinal not in range(128)
src/olympia/devhub/tests/test_helpers.py:75: in setUp
self.raw_url = u'http://host/%s' % 'フォクすけといっしょ'
E UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 0: ordinal not in range(128)
Check warning on line 76 in src/olympia/devhub/tests/test_helpers.py
github-actions / Python 2.7 Test Results
test_utf8 (src.olympia.devhub.tests.test_helpers.TestDisplayUrl) failed
src/test_report.xml [took 0s]
Raw output
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 0: ordinal not in range(128)
src/olympia/devhub/tests/test_helpers.py:75: in setUp
self.raw_url = u'http://host/%s' % 'フォクすけといっしょ'
E UnicodeDecodeError: 'ascii' codec can't decode byte 0xe3 in position 0: ordinal not in range(128)
Check warning on line 287 in src/olympia/devhub/tests/test_tasks.py
github-actions / Python 2.7 Test Results
test_track_validation_stats (src.olympia.devhub.tests.test_tasks.TestValidator) failed
src/test_report.xml [took 0s]
Raw output
AssertionError: Expected call: track_validation_stats('{"errors": 0}') Not called
src/olympia/devhub/tests/test_tasks.py:293: in test_track_validation_stats
mock_track.assert_called_with(mock_validate.return_value)
/usr/local/lib/python2.7/site-packages/mock/mock.py:925: in assert_called_with
raise AssertionError('Expected call: %s\nNot called' % (expected,))
E AssertionError: Expected call: track_validation_stats('{"errors": 0}')
E Not called
Check warning on line 287 in src/olympia/devhub/tests/test_tasks.py
github-actions / Python 2.7 Test Results
test_track_validation_stats (src.olympia.devhub.tests.test_tasks.TestMeasureValidationTime) failed
src/test_report.xml [took 0s]
Raw output
AssertionError: Expected call: track_validation_stats('{"errors": 0}') Not called
src/olympia/devhub/tests/test_tasks.py:293: in test_track_validation_stats
mock_track.assert_called_with(mock_validate.return_value)
/usr/local/lib/python2.7/site-packages/mock/mock.py:925: in assert_called_with
raise AssertionError('Expected call: %s\nNot called' % (expected,))
E AssertionError: Expected call: track_validation_stats('{"errors": 0}')
E Not called
Check warning on line 495 in src/olympia/devhub/tests/test_tasks.py
github-actions / Python 2.7 Test Results
test_run_linter_use_temporary_file (src.olympia.devhub.tests.test_tasks.TestRunAddonsLinter) failed
src/test_report.xml [took 2s]
Raw output
AssertionError: assert 25 == 45
src/olympia/devhub/tests/test_tasks.py:517: in test_run_linter_use_temporary_file
assert result['warnings'] == 45
E AssertionError: assert 25 == 45
Check warning on line 555 in src/olympia/devhub/tests/test_tasks.py
github-actions / Python 2.7 Test Results
test_amo_validator_addons_linter_error (src.olympia.devhub.tests.test_tasks.TestValidateFilePath) failed
src/test_report.xml [took 0s]
Raw output
AssertionError: assert not 1
src/olympia/devhub/tests/test_tasks.py:564: in test_amo_validator_addons_linter_error
assert not result['warnings']
E AssertionError: assert not 1
Check warning on line 547 in src/olympia/devhub/tests/test_tasks.py
github-actions / Python 2.7 Test Results
test_amo_validator_addons_linter_success (src.olympia.devhub.tests.test_tasks.TestValidateFilePath) failed
src/test_report.xml [took 0s]
Raw output
AssertionError: assert not 1
src/olympia/devhub/tests/test_tasks.py:554: in test_amo_validator_addons_linter_success
assert not result['warnings']
E AssertionError: assert not 1
Check warning on line 539 in src/olympia/devhub/tests/test_tasks.py
github-actions / Python 2.7 Test Results
test_amo_validator_fail_error (src.olympia.devhub.tests.test_tasks.TestValidateFilePath) failed
src/test_report.xml [took 0s]
Raw output
AssertionError: assert not True
src/olympia/devhub/tests/test_tasks.py:544: in test_amo_validator_fail_error
assert not result['success']
E AssertionError: assert not True