Operating System: Linux vagrant 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
Description
make validate fails
What I Did
make requirements [successful]
make validate fails [fail]
$ make validate
find . -name '*.pyc' -delete
coverage erase
rm -fr build/
rm -fr dist/
rm -fr *.egg-info
coverage run ./manage.py test edx_salesforce --settings=settings.test
Creating test database for alias 'default'...
Creating test database for alias 'ecommerce'...
Synchronizing 1 user account for site test_server.fake_domain and org [u'testX']...
fake-user1: SYNCHRONIZED
Finished processing 1 user for site test_server.fake_domain and org [u'testX'].
0 FAILED
0 In Sync
1 SYNCHRONIZED
.Synchronizing 1 user account for site test_server.fake_domain and org [u'testX']...
fake-user1: In Sync
Finished processing 1 user for site test_server.fake_domain and org [u'testX'].
0 FAILED
1 In Sync
0 SYNCHRONIZED
.Synchronizing 1 user account for site test_server.fake_domain and org [u'testX']...
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform-hms/edx-salesforce/edx_salesforce/management/commands/sync_salesforce.py", line 152, in _sync_user_data
courses = user['courses']
KeyError: u'courses'
fake-user1: FAILED
Finished processing 1 user for site test_server.fake_domain and org [u'testX'].
1 FAILED
0 In Sync
0 SYNCHRONIZED
Synchronizing 1 user account for site test_server.fake_domain and org [u'testX']...
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform-hms/edx-salesforce/edx_salesforce/management/commands/sync_salesforce.py", line 152, in _sync_user_data
courses = user['courses']
KeyError: u'courses'
fake-user1: FAILED
Finished processing 1 user for site test_server.fake_domain and org [u'testX'].
1 FAILED
0 In Sync
0 SYNCHRONIZED
.Synchronizing 1 user account for site test_server.fake_domain and org [u'testX']...
fake-user1: Converted Contact object manually deleted in Salesforce. This user will no longer be synchronized.
Finished processing 1 user for site test_server.fake_domain and org [u'testX'].
0 FAILED
0 In Sync
0 SYNCHRONIZED
.Synchronizing 1 user account for site test_server.fake_domain and org [u'testX']...
fake-user1: SYNCHRONIZED
Finished processing 1 user for site test_server.fake_domain and org [u'testX'].
0 FAILED
0 In Sync
1 SYNCHRONIZED
.Synchronizing 1 user account for site test_server.fake_domain and org [u'testX']...
fake-user1: SYNCHRONIZED
Finished processing 1 user for site test_server.fake_domain and org [u'testX'].
0 FAILED
0 In Sync
1 SYNCHRONIZED
.No user accounts found for site test_server.fake_domain and orgs [u'testX']...
.Synchronizing 1 user account for site test_server.fake_domain and org [u'testX']...
fake-user1: SYNCHRONIZED
Finished processing 1 user for site test_server.fake_domain and org [u'testX'].
0 FAILED
0 In Sync
1 SYNCHRONIZED
.Synchronizing 1 user account for site test_server.fake_domain and org [u'testX']...
fake-user1: SYNCHRONIZED
Finished processing 1 user for site test_server.fake_domain and org [u'testX'].
0 FAILED
0 In Sync
1 SYNCHRONIZED
.Synchronizing 1 user account for site test_server.fake_domain and org [u'testX']...
fake-user1: SYNCHRONIZED
Finished processing 1 user for site test_server.fake_domain and org [u'testX'].
0 FAILED
0 In Sync
1 SYNCHRONIZED
..................Running user account report for 2 user accounts for site test_server.fake_domain and org [u'testX', u'TestB']...
Finished running user account report for 2 users for site test_server.fake_domain and org [u'testX', u'TestB'].
.Running user account report for 2 user accounts for site test_server.fake_domain and org [u'testX', u'TestB']...
Finished running user account report for 2 users for site test_server.fake_domain and org [u'testX', u'TestB'].
.No user accounts found for site test_server.fake_domain and orgs [u'testX', u'TestB']...
....F..
======================================================================
FAIL: test_fetch_user_data (edx_salesforce.tests.test_edx_data.EdxDataTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/edx/app/edxapp/edx-platform-hms/edx-salesforce/edx_salesforce/tests/test_edx_data.py", line 68, in test_fetch_user_data
self.assertListEqual(actual, edx_sample_data.USER_DATA)
AssertionError: Lists differ: [{'username': u'fake-user1', u... != [{u'username': u'fake-user1', ...
First differing element 0:
{'username': u'fake-user1', u'tracking': {u'utm_campaign': u'fake_registration_utm_campaign', u'utm_content': u'fake_registration_utm_content', u'utm_medium': u'fake_registration_utm_medium', u'utm_source': u'fake_registration_utm_source', u'utm_term': u'fake_registration_utm_term'}, u'language': u'en', 'country': u'US', 'registration_date': datetime.datetime(2016, 1, 1, 11, 11, 11), u'courses': [{'username': u'fake-user1', 'list_price': Decimal('2.22'), 'order_id': 1, 'unit_price': Decimal('10.11'), u'coupon_codes': [u'fake-code1'], 'purchase_date': datetime.datetime(2017, 1, 1, 11, 11, 11), 'course_id': u'course-v1:testX:fake-course-id1', 'quantity': 1}], 'year_of_birth': 1990, 'level_of_education': u'p', 'goals': u'test-goals', 'full_name': u'fake user1', 'gender': u'm', 'email': u'fake-user1@fake.email'}
{u'username': u'fake-user1', u'registration_date': datetime.datetime(2016, 1, 1, 11, 11, 11), u'year_of_birth': 1990, u'goals': u'test-goals', u'full_name': u'fake user1', u'tracking': {u'utm_campaign': None, u'utm_term': u'fake_registration_utm_term', u'utm_medium': u'fake_registration_utm_medium', u'utm_source': u'fake_registration_utm_source', u'utm_content': u'fake_registration_utm_content'}, u'language': u'en', u'gender': u'm', u'courses': [{u'username': u'fake-user1', u'coupon_codes': None, u'list_price': Decimal('2.22'), u'purchase_date': datetime.datetime(2017, 1, 1, 11, 11, 11), u'order_id': 1, u'course_id': u'course-v1:testX:fake-course-id1', u'unit_price': Decimal('10.11'), u'quantity': 1}], u'level_of_education': u'p', u'country': u'US', u'email': u'fake-user1@fake.email'}
Diff is 4072 characters long. Set self.maxDiff to None to see it.
----------------------------------------------------------------------
Ran 36 tests in 0.124s
FAILED (failures=1)
Destroying test database for alias 'default'...
Destroying test database for alias 'ecommerce'...
Makefile:39: recipe for target 'test' failed
make: *** [test] Error 1
Description
make validate fails
What I Did