Created
July 18, 2018 12:08
-
-
Save awaazde/c4643cf65f66191888680a869af3d3ed to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====================================================================== | |
ERROR: test_contacts_reports (awaazde.web.messaging.tests.test_reports.TestReport) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 79, in plan_subscribe_wrapper | |
func(instance) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 104, in phone_number_wrapper | |
func(instance) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 164, in feature_wrapper | |
func(instance) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 164, in feature_wrapper | |
func(instance) | |
File "/Users/neil/Development/virtualenvs/awaazde/lib/python2.7/site-packages/vcr/cassette.py", line 95, in __call__ | |
function, args, kwargs | |
File "/Users/neil/Development/virtualenvs/awaazde/lib/python2.7/site-packages/vcr/cassette.py", line 103, in _execute_function | |
return handler(function, args, kwargs) | |
File "/Users/neil/Development/virtualenvs/awaazde/lib/python2.7/site-packages/vcr/cassette.py", line 130, in _handle_function | |
return self.__handle_function(cassette, function, args, kwargs) | |
File "/Users/neil/Development/virtualenvs/awaazde/lib/python2.7/site-packages/vcr/cassette.py", line 126, in __handle_function | |
return function(*args, **kwargs) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/messaging/tests/test_reports.py", line 2669, in test_contacts_reports | |
process_blast_attempts.delay() | |
File "/Users/neil/Development/virtualenvs/awaazde/lib/python2.7/site-packages/celery/app/task.py", line 453, in delay | |
return self.apply_async(args, kwargs) | |
File "/Users/neil/Development/virtualenvs/awaazde/lib/python2.7/site-packages/tenant_schemas_celery/task.py", line 27, in apply_async | |
return super(TenantTask, self).apply_async(args, kwargs, *arg, **kw) | |
File "/Users/neil/Development/virtualenvs/awaazde/lib/python2.7/site-packages/celery/app/task.py", line 557, in apply_async | |
link=link, link_error=link_error, **options) | |
File "/Users/neil/Development/virtualenvs/awaazde/lib/python2.7/site-packages/tenant_schemas_celery/task.py", line 37, in apply | |
return super(TenantTask, self).apply(args, kwargs, *arg, **kw) | |
File "/Users/neil/Development/virtualenvs/awaazde/lib/python2.7/site-packages/celery/app/task.py", line 755, in apply | |
request=request, propagate=throw) | |
File "/Users/neil/Development/virtualenvs/awaazde/lib/python2.7/site-packages/celery/app/trace.py", line 355, in eager_trace_task | |
uuid, args, kwargs, request) | |
File "/Users/neil/Development/virtualenvs/awaazde/lib/python2.7/site-packages/celery/app/trace.py", line 253, in trace_task | |
I, R, state, retval = on_error(task_request, exc, uuid) | |
File "/Users/neil/Development/virtualenvs/awaazde/lib/python2.7/site-packages/celery/app/trace.py", line 240, in trace_task | |
R = retval = fun(*args, **kwargs) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/messaging/tasks.py", line 339, in process_blast_attempts | |
_generate_report_for_blast(blast) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/messaging/tasks.py", line 327, in _generate_report_for_blast | |
generate_report_data(report_instance) | |
File "/Users/neil/Development/virtualenvs/awaazde/lib/python2.7/site-packages/celery/local.py", line 188, in __call__ | |
return self._get_current_object()(*a, **kw) | |
File "/Users/neil/Development/virtualenvs/awaazde/lib/python2.7/site-packages/celery/app/task.py", line 420, in __call__ | |
return self.run(*args, **kwargs) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/messaging/tasks.py", line 353, in generate_report_data | |
return report_instance.generate_report(**kwargs) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/messaging/reports.py", line 888, in generate_report | |
return self._save_reports(report_type, list(attempts), perform_save=perform_save) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/messaging/reports.py", line 76, in _save_reports | |
Report.objects.filter(id=obj.id).update(data=data) | |
File "/Users/neil/Development/virtualenvs/awaazde/lib/python2.7/site-packages/django/db/models/query.py", line 647, in update | |
rows = query.get_compiler(self.db).execute_sql(CURSOR) | |
File "/Users/neil/Development/virtualenvs/awaazde/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 1199, in execute_sql | |
cursor = super(SQLUpdateCompiler, self).execute_sql(result_type) | |
File "/Users/neil/Development/virtualenvs/awaazde/lib/python2.7/site-packages/django/db/models/sql/compiler.py", line 894, in execute_sql | |
raise original_exception | |
TypeError: datetime.datetime(2018, 7, 18, 11, 55, 38, 895141, tzinfo=<UTC>) is not JSON serializable | |
====================================================================== | |
FAIL: test_schedule_multiple_sms_web_blasts (awaazde.web.messaging.tests.test_scheduling.TestBlastScheduler) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 79, in plan_subscribe_wrapper | |
func(instance) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 104, in phone_number_wrapper | |
func(instance) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 164, in feature_wrapper | |
func(instance) | |
File "/Users/neil/Development/virtualenvs/awaazde/lib/python2.7/site-packages/vcr/cassette.py", line 95, in __call__ | |
function, args, kwargs | |
File "/Users/neil/Development/virtualenvs/awaazde/lib/python2.7/site-packages/vcr/cassette.py", line 103, in _execute_function | |
return handler(function, args, kwargs) | |
File "/Users/neil/Development/virtualenvs/awaazde/lib/python2.7/site-packages/vcr/cassette.py", line 130, in _handle_function | |
return self.__handle_function(cassette, function, args, kwargs) | |
File "/Users/neil/Development/virtualenvs/awaazde/lib/python2.7/site-packages/vcr/cassette.py", line 126, in __handle_function | |
return function(*args, **kwargs) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/messaging/tests/test_scheduling.py", line 2186, in test_schedule_multiple_sms_web_blasts | |
_validate_content_for_delivery(blasts) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/messaging/tests/test_scheduling.py", line 2081, in _validate_content_for_delivery | |
self.assertIn("https://goo.gl/", content) | |
AssertionError: 'https://goo.gl/' not found in u'You have received a new message. Click here to view it: None' | |
====================================================================== | |
FAIL: test_schedule_voice_blast (awaazde.web.messaging.tests.test_scheduling.TestBlastScheduler) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 79, in plan_subscribe_wrapper | |
func(instance) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 104, in phone_number_wrapper | |
func(instance) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 164, in feature_wrapper | |
func(instance) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/messaging/tests/test_scheduling.py", line 208, in test_schedule_voice_blast | |
self.assertEqual(Attempt.objects.all().count(), 10) | |
AssertionError: 0 != 10 | |
====================================================================== | |
FAIL: test_airtime_assets_low_balance_notification (awaazde.web.messaging.tests.test_assets_for_blast.TestAssetsForScheduling) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 79, in plan_subscribe_wrapper | |
func(instance) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 104, in phone_number_wrapper | |
func(instance) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 104, in phone_number_wrapper | |
func(instance) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 159, in feature_wrapper | |
_seed_features(**kwargs) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 152, in _seed_features | |
_seed_feature(feature_type, quantity) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 148, in _seed_feature | |
phone_feature_allocation_scaffolding(quantity, valid_for_months)[0] | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 413, in phone_feature_allocation_scaffolding | |
self.assertEqual(len(phone_numbers), len(phone_asset_providers)) | |
AssertionError: 2 != 1 | |
====================================================================== | |
FAIL: test_airtime_assets_low_balance_notification_multiple_providers (awaazde.web.messaging.tests.test_assets_for_blast.TestAssetsForScheduling) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 79, in plan_subscribe_wrapper | |
func(instance) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 104, in phone_number_wrapper | |
func(instance) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 104, in phone_number_wrapper | |
func(instance) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 164, in feature_wrapper | |
func(instance) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 164, in feature_wrapper | |
func(instance) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/core/tests/__init__.py", line 164, in feature_wrapper | |
func(instance) | |
File "/Users/neil/Development/ad2/awaazde/backend/awaazde/web/messaging/tests/test_assets_for_blast.py", line 1363, in test_airtime_assets_low_balance_notification_multiple_providers | |
self.assertEqual(len(mail.outbox), old_mails_count) | |
AssertionError: 1 != 0 | |
---------------------------------------------------------------------- | |
Ran 107 tests in 919.784s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment