Created
October 7, 2014 17:02
-
-
Save antoviaque/30662905476dab5d720e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| edxapp@precise64:~/edx-platform$ paver test_python | |
| ---> pavelib.tests.test_python | |
| ---> pavelib.prereqs.install_prereqs | |
| ---> pavelib.prereqs.install_ruby_prereqs | |
| Ruby prereqs unchanged, skipping... | |
| ---> pavelib.prereqs.install_node_prereqs | |
| Node prereqs unchanged, skipping... | |
| ---> pavelib.prereqs.install_python_prereqs | |
| rm -rf /edx/app/edxapp/venvs/edxapp/build/* | |
| pip install -q --exists-action w -r requirements/edx/pre.txt | |
| rm -rf /edx/app/edxapp/venvs/edxapp/build/* | |
| pip install -q --exists-action w -r requirements/edx/github.txt | |
| Could not find a tag or branch 'd89aae2a82f2b', assuming commit. | |
| Could not find a tag or branch '88ec8a011e481918fdc9d2682d4017c835acd8be', assuming commit. | |
| Could not find a tag or branch 'cd0b2b31997afccde519fe5b3365e61a9edb143f', assuming commit. | |
| Could not find a tag or branch 'cccc3978ad2df82a78b6f9648fe2e9baddd22f88', assuming commit. | |
| Could not find a tag or branch '776973740bdaad83a3b029f96e415a7d1e8bec2f', assuming commit. | |
| Could not find a tag or branch 'd53fe0e81b623f084e91776bcf6369f8b7b63879', assuming commit. | |
| Could not find a tag or branch '42cb1bb1dc680a60c6452e8bb2b843c2a0382c90', assuming commit. | |
| Could not find a tag or branch '95e69341cebf5a6a9fbf7c4f5439d458898bdc3b', assuming commit. | |
| Could not find a tag or branch '813079fd5218ed275248d2a1fcae2fcbf20a0838', assuming commit. | |
| Could not find a tag or branch '4dc416c2af4c4863fc3834fb80c7682cb9e3fd19', assuming commit. | |
| Could not find a tag or branch '71f5c5616e2a73ae8cecd1ff2362774a773d3665', assuming commit. | |
| Could not find a tag or branch '823a102e48', assuming commit. | |
| Could not find a tag or branch '2e6eab960a97fe41778292fe8e1b2f0b69a1be2d', assuming commit. | |
| Could not find a tag or branch '7579d052afcf474ece1239153cffe1c89935bc4f', assuming commit. | |
| Could not find a tag or branch '459aff7b63db8f2c5decd1755706c1a64fb4ebb1', assuming commit. | |
| Could not find a tag or branch 'a7c506befdf9b97bbbb6961e0b0c7fa4807003eb', assuming commit. | |
| Could not find a tag or branch '97de68448e5495385ba043d3091f570a699d5b5f', assuming commit. | |
| Could not find a tag or branch '0d7847f9dfa2281640527b4dc51f5854f950f9b7', assuming commit. | |
| rm -rf /edx/app/edxapp/venvs/edxapp/build/* | |
| pip install -q --exists-action w -r requirements/edx/custom.txt | |
| Could not find a tag or branch 'cc2026a4da325937a2e9a7ba8678b75ce4ef5b68', assuming commit. | |
| Could not find a tag or branch '9b01df4bca8aca89d300850a357fb1647cbd3173', assuming commit. | |
| Could not find a tag or branch 'eaa8dd4d934a374738fd7385fc636cbb99575c40', assuming commit. | |
| Could not find a tag or branch '1e99a60c7f44c0c51f40b90069d911c61a35103b', assuming commit. | |
| Could not find a tag or branch '10ededa58aab3f8893d98de36e2e5279890064bd', assuming commit. | |
| Could not find a tag or branch '2b932de36e293bd08f6a59112daa9d6794a05c46', assuming commit. | |
| Could not find a tag or branch '5b14678ca85856b4db2bb612b69047ec82c11efb', assuming commit. | |
| Could not find a tag or branch '7b0b4fae3d1aeab665001a16f42782b9ef9f8ccd', assuming commit. | |
| rm -rf /edx/app/edxapp/venvs/edxapp/build/* | |
| pip install -q --exists-action w -r requirements/edx/local.txt | |
| rm -rf /edx/app/edxapp/venvs/edxapp/build/* | |
| pip install -q --exists-action w -r requirements/edx/base.txt | |
| Could not find a tag or branch '514607d78535fd80bfd23184cd292ee5799b500d', assuming commit. | |
| rm -rf /edx/app/edxapp/venvs/edxapp/build/* | |
| pip install -q --exists-action w -r requirements/edx/post.txt | |
| ---> pavelib.utils.test.utils.clean_reports_dir | |
| find /edx/app/edxapp/edx-platform/reports -type f -delete | |
| Setting up for Python Tests | |
| ---> pavelib.utils.test.utils.clean_test_files | |
| git clean -fqdx test_root/logs test_root/data test_root/staticfiles test_root/uploads | |
| find . -type f -name "*.pyc" -delete | |
| rm -rf test_root/log/auto_screenshots/* | |
| rm -rf /tmp/mako_[cl]ms | |
| Setting up for cms | |
| python -m coverage run --rcfile=cms/.coveragerc `which ./manage.py` cms test --verbosity=1 cms/djangoapps/* common/djangoapps/* cms/lib/* --traceback --settings=test | |
| ======================================== | |
| Running tests for cms | |
| ======================================== | |
| nosetests cms/djangoapps/contentstore cms/djangoapps/course_creators cms/djangoapps/models common/djangoapps/cache_toolbox common/djangoapps/config_models common/djangoapps/contentserver common/djangoapps/cors_csrf common/djangoapps/coupons common/djangoapps/course_action_state common/djangoapps/course_groups common/djangoapps/course_modes common/djangoapps/dark_lang common/djangoapps/datadog common/djangoapps/django_comment_common common/djangoapps/django_future common/djangoapps/edxmako common/djangoapps/embargo common/djangoapps/external_auth common/djangoapps/geoinfo common/djangoapps/heartbeat common/djangoapps/lang_pref common/djangoapps/microsite_configuration common/djangoapps/mitxmako common/djangoapps/monitoring common/djangoapps/monkey_patch common/djangoapps/pipeline_js common/djangoapps/pipeline_mako common/djangoapps/profiler common/djangoapps/request_cache common/djangoapps/reverification common/djangoapps/service_status common/djangoapps/session_inactivity_timeout common/djangoapps/static_replace common/djangoapps/status common/djangoapps/student common/djangoapps/system_manager common/djangoapps/terrain common/djangoapps/third_party_auth common/djangoapps/track common/djangoapps/user_api common/djangoapps/util common/djangoapps/xmodule_django common/djangoapps/xmodule_modifiers.py cms/lib/__init__.py cms/lib/xblock --id-file /edx/app/edxapp/edx-platform/.testids/cms/noseids --xunit-file /edx/app/edxapp/edx-platform/reports/cms/nosetests.xml --verbosity=1 | |
| Creating test database for alias 'default'... | |
| ...........---............................................................... | |
| ............................................................................. | |
| ............................................................................. | |
| ......................................................................-...... | |
| ....................................................................-....-... | |
| .....-.........................................-............................. | |
| ...........................................................................-- | |
| -----------------------------.................-...............-------.....--- | |
| --------------..----.----.-.--............................................... | |
| .----------..-.............------------------................................ | |
| ...........................-....................-.---..----..-.------.---.--- | |
| --------------------------------------------------....--..................... | |
| ...............-.........-.................--..............--................ | |
| ..................----...............................-....................... | |
| .................-.--........................................................ | |
| ................................................................ | |
| ----------------------------------------------------------------------------- | |
| 1219 tests run in 191.9 seconds. | |
| 192 skipped (1027 tests passed) | |
| Destroying test database for alias 'default'... | |
| Cleaning up after cms | |
| ---> pavelib.utils.test.utils.clean_mongo | |
| mongo localhost:27017 /edx/app/edxapp/edx-platform/scripts/delete-mongo-test-dbs.js | |
| MongoDB shell version: 2.4.11 | |
| connecting to: localhost:27017/test | |
| Setting up for lms | |
| python -m coverage run --rcfile=lms/.coveragerc `which ./manage.py` lms test --verbosity=1 lms/djangoapps/* common/djangoapps/* lms/lib/* lms/tests.py --traceback --settings=test | |
| ======================================== | |
| Running tests for lms | |
| ======================================== | |
| nosetests lms/djangoapps/analytics lms/djangoapps/api_manager lms/djangoapps/branding lms/djangoapps/bulk_email lms/djangoapps/certificates lms/djangoapps/circuit lms/djangoapps/class_dashboard lms/djangoapps/course_wiki lms/djangoapps/courseware lms/djangoapps/dashboard lms/djangoapps/debug lms/djangoapps/django_comment_client lms/djangoapps/foldit lms/djangoapps/gradebook lms/djangoapps/instructor lms/djangoapps/instructor_analytics lms/djangoapps/instructor_task lms/djangoapps/licenses lms/djangoapps/linkedin lms/djangoapps/lms_migration lms/djangoapps/notes lms/djangoapps/notification_prefs lms/djangoapps/open_ended_grading lms/djangoapps/projects lms/djangoapps/psychometrics lms/djangoapps/shoppingcart lms/djangoapps/static_template_view lms/djangoapps/staticbook lms/djangoapps/verify_student common/djangoapps/cache_toolbox common/djangoapps/config_models common/djangoapps/contentserver common/djangoapps/cors_csrf common/djangoapps/coupons common/djangoapps/course_action_state common/djangoapps/course_groups common/djangoapps/course_modes common/djangoapps/dark_lang common/djangoapps/datadog common/djangoapps/django_comment_common common/djangoapps/django_future common/djangoapps/edxmako common/djangoapps/embargo common/djangoapps/external_auth common/djangoapps/geoinfo common/djangoapps/heartbeat common/djangoapps/lang_pref common/djangoapps/microsite_configuration common/djangoapps/mitxmako common/djangoapps/monitoring common/djangoapps/monkey_patch common/djangoapps/pipeline_js common/djangoapps/pipeline_mako common/djangoapps/profiler common/djangoapps/request_cache common/djangoapps/reverification common/djangoapps/service_status common/djangoapps/session_inactivity_timeout common/djangoapps/static_replace common/djangoapps/status common/djangoapps/student common/djangoapps/system_manager common/djangoapps/terrain common/djangoapps/third_party_auth common/djangoapps/track common/djangoapps/user_api common/djangoapps/util common/djangoapps/xmodule_django common/djangoapps/xmodule_modifiers.py common/djangoapps/xmodule_modifiers.pyc lms/lib/__init__.py lms/lib/__init__.pyc lms/lib/comment_client lms/lib/newrelic_logging lms/lib/perfstats lms/lib/xblock lms/tests.py --id-file /edx/app/edxapp/edx-platform/.testids/lms/noseids --xunit-file /edx/app/edxapp/edx-platform/reports/lms/nosetests.xml --verbosity=1 | |
| Creating test database for alias 'default'... | |
| ............................................................................. | |
| ............................................................................. | |
| ..........................................................F..F....FFF..F.F... | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| ....-..............................................-....-....-.-............. | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| .............--....................................-.........-............... | |
| ..--..............--......................................................... | |
| .........-................................................................... | |
| ............................................................................. | |
| ............................................................ | |
| ----------------------------------------------------------------------------- | |
| 1) FAIL: test_user_courses_detail_delete (api_manager.users.tests.UsersApiTests) | |
| Traceback (most recent call last): | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/mock.py line 1618 in _inner | |
| return f(*args, **kw) | |
| lms/djangoapps/api_manager/users/tests.py line 1055 in test_user_courses_detail_delete | |
| response = self.do_post(post_uri, data) | |
| lms/djangoapps/api_manager/users/tests.py line 137 in do_post | |
| uri, headers=headers, content_type='application/json', data=json_data) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/test/client.py line 449 in post | |
| response = super(Client, self).post(path, data=data, content_type=content_type, **extra) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/test/client.py line 262 in post | |
| return self.request(**r) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py line 111 in get_response | |
| response = callback(request, *callback_args, **callback_kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/compat.py line 120 in view | |
| return self.dispatch(request, *args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py line 77 in wrapped_view | |
| return view_func(*args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py line 326 in dispatch | |
| response = self.handle_exception(exc) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py line 323 in dispatch | |
| response = handler(request, *args, **kwargs) | |
| lms/djangoapps/api_manager/users/views.py line 728 in post | |
| default_cohort = get_cohort_by_name(course_id, CourseUserGroup.default_cohort_name) | |
| common/djangoapps/course_groups/cohorts.py line 202 in get_cohort_by_name | |
| name=name | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py line 131 in get | |
| return self.get_query_set().get(*args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py line 358 in get | |
| clone = self.filter(*args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py line 624 in filter | |
| return self._filter_or_exclude(False, *args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py line 642 in _filter_or_exclude | |
| clone.query.add_q(Q(*args, **kwargs)) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py line 1250 in add_q | |
| can_reuse=used_aliases, force_having=force_having) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py line 1185 in add_filter | |
| connector) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py line 69 in add | |
| value = obj.prepare(lookup_type, value) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py line 320 in prepare | |
| return self.field.get_prep_lookup(lookup_type, value) | |
| common/djangoapps/xmodule_django/models.py line 103 in get_prep_lookup | |
| _strip_value(value, lookup) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py line 310 in get_prep_lookup | |
| return self.get_prep_value(value) | |
| common/djangoapps/xmodule_django/models.py line 110 in get_prep_value | |
| assert isinstance(value, CourseKey) | |
| AssertionError: | |
| -------------------- >> begin captured logging << -------------------- | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'start': datetime.datetime(2014, 6, 16, 14, 30), 'run': 'USERTEST1', 'end': datetime.datetime(2015, 1, 16, 14, 30), 'display_name': 'TEST COURSE', 'org': 'USERTEST'}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(end=datetime.datetime(2015, 1, 16, 14, 30), modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='USERTEST', run='USERTEST1', display_name='TEST COURSE') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(run='USERTEST1', modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='USERTEST', end=datetime.datetime(2015, 1, 16, 14, 30), display_name='TEST COURSE') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(run='USERTEST1', modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='USERTEST', end=datetime.datetime(2015, 1, 16, 14, 30), display_name='TEST COURSE') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'videosequence', 'display_name': 'View_Sequence', 'data': '<html>04394022-dd10-45b3-abb1-698785beef0c</html>', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), 'due': datetime.datetime(2016, 5, 16, 14, 30)}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, due=datetime.datetime(2016, 5, 16, 14, 30), location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>04394022-dd10-45b3-abb1-698785beef0c</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'videosequence', 'View_Sequence'), data='<html>04394022-dd10-45b3-abb1-698785beef0c</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'videosequence', 'View_Sequence'), data='<html>04394022-dd10-45b3-abb1-698785beef0c</html>') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'org': 'TESTORG2', 'run': 'USERTEST2', 'display_name': 'TEST COURSE2'}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, display_name='TEST COURSE2', run='USERTEST2', number='999', org='TESTORG2') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, run='USERTEST2', display_name='TEST COURSE2', number='999', org='TESTORG2') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, run='USERTEST2', display_name='TEST COURSE2', number='999', org='TESTORG2') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'videosequence', 'display_name': 'View_Sequence2', 'data': '<html>04394022-dd10-45b3-abb1-698785beef0c</html>', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), 'due': datetime.datetime(2016, 5, 16, 14, 30)}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, due=datetime.datetime(2016, 5, 16, 14, 30), location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>04394022-dd10-45b3-abb1-698785beef0c</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'videosequence', 'View_Sequence2'), data='<html>04394022-dd10-45b3-abb1-698785beef0c</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'videosequence', 'View_Sequence2'), data='<html>04394022-dd10-45b3-abb1-698785beef0c</html>') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserFactory(extra={}) | |
| factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserFactory(username=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x6f097d0>>, first_name=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x6f09910>>, last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x6f09810>>, date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>)) | |
| factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x68a37e0> for seq=2522 | |
| factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x68a3b10> for seq=2522 | |
| factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x68a3750> for seq=2522 | |
| factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserFactory(username=u'robot2522', first_name=u'Robot2522', last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email=u'robot+test+2522@edx.org', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>)) | |
| factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserFactory(username=u'robot2522', first_name=u'Robot2522', last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email=u'robot+test+2522@edx.org', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>)) | |
| django.db.backends: DEBUG: (0.000) SELECT "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_superuser", "auth_user"."last_login", "auth_user"."date_joined" FROM "auth_user" WHERE ("auth_user"."username" = robot2522 AND "auth_user"."email" = robot+test+2522@edx.org ); args=(u'robot2522', u'robot+test+2522@edx.org') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_user" ("username", "first_name", "last_name", "email", "password", "is_staff", "is_active", "is_superuser", "last_login", "date_joined") VALUES (robot2522, Robot2522, Test, robot+test+2522@edx.org, , False, True, False, 2012-01-01 00:00:00, 2011-01-01 00:00:00); args=[u'robot2522', u'Robot2522', 'Test', u'robot+test+2522@edx.org', '', False, True, False, u'2012-01-01 00:00:00', u'2011-01-01 00:00:00'] | |
| factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.groups(robot2522, True, None) | |
| factory.generate: DEBUG: PostGenerationMethodCall: Calling <User: robot2522>.set_password(test) | |
| factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.profile(robot2522, True, None) | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "auth_user" SET "username" = robot2522, "first_name" = Robot2522, "last_name" = Test, "email" = robot+test+2522@edx.org, "password" = sha1$KlX9xDM988TN$dc29896787e47c1f4869376cddaf19b4c240ebd9, "is_staff" = False, "is_active" = True, "is_superuser" = False, "last_login" = 2012-01-01 00:00:00, "date_joined" = 2011-01-01 00:00:00 WHERE "auth_user"."id" = 1 ; args=(u'robot2522', u'Robot2522', 'Test', u'robot+test+2522@edx.org', 'sha1$KlX9xDM988TN$dc29896787e47c1f4869376cddaf19b4c240ebd9', False, True, False, u'2012-01-01 00:00:00', u'2011-01-01 00:00:00', 1) | |
| factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserProfileFactory(extra={'user': <User: robot2522>}) | |
| factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserProfileFactory(name=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x6f09750>>, mailing_address=None, level_of_education=None, user=<User: robot2522>, gender=u'm', goals=u'World domination') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <built-in method format of unicode object at 0x67ae1b0> on <LazyStub for student.tests.factories.UserProfileFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserProfileFactory(name=u'Robot2522 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: robot2522>) | |
| factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserProfileFactory(name=u'Robot2522 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: robot2522>) | |
| django.db.backends: DEBUG: (0.000) SELECT "auth_userprofile"."id", "auth_userprofile"."user_id", "auth_userprofile"."name", "auth_userprofile"."meta", "auth_userprofile"."courseware", "auth_userprofile"."language", "auth_userprofile"."location", "auth_userprofile"."year_of_birth", "auth_userprofile"."gender", "auth_userprofile"."level_of_education", "auth_userprofile"."mailing_address", "auth_userprofile"."city", "auth_userprofile"."country", "auth_userprofile"."goals", "auth_userprofile"."allow_certificate", "auth_userprofile"."title", "auth_userprofile"."avatar_url" FROM "auth_userprofile" WHERE "auth_userprofile"."user_id" = 1 ; args=(1,) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_userprofile" ("user_id", "name", "meta", "courseware", "language", "location", "year_of_birth", "gender", "level_of_education", "mailing_address", "city", "country", "goals", "allow_certificate", "title", "avatar_url") VALUES (1, Robot2522 Test, , course.xml, , , None, m, None, None, None, , World domination, True, None, None); args=[1, u'Robot2522 Test', '', u'course.xml', '', '', None, u'm', None, None, None, u'', u'World domination', True, None, None] | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "auth_user" SET "username" = robot2522, "first_name" = Robot2522, "last_name" = Test, "email" = robot+test+2522@edx.org, "password" = sha1$KlX9xDM988TN$dc29896787e47c1f4869376cddaf19b4c240ebd9, "is_staff" = False, "is_active" = True, "is_superuser" = False, "last_login" = 2012-01-01 00:00:00, "date_joined" = 2011-01-01 00:00:00 WHERE "auth_user"."id" = 1 ; args=(u'robot2522', u'Robot2522', 'Test', u'robot+test+2522@edx.org', 'sha1$KlX9xDM988TN$dc29896787e47c1f4869376cddaf19b4c240ebd9', False, True, False, u'2012-01-01 00:00:00', u'2011-01-01 00:00:00', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = USERTEST/999/USERTEST1 AND "django_comment_client_role"."name" = Moderator ); args=(u'USERTEST/999/USERTEST1', 'Moderator') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "django_comment_client_role" ("name", "course_id") VALUES (Moderator, USERTEST/999/USERTEST1); args=['Moderator', u'USERTEST/999/USERTEST1'] | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'org': 'TUCDD', 'run': 'TUCDD1'}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, display_name='Robot Super Course', run='TUCDD1', number='999', org='TUCDD') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, run='TUCDD1', display_name='Robot Super Course', number='999', org='TUCDD') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, run='TUCDD1', display_name='Robot Super Course', number='999', org='TUCDD') | |
| django.db.backends: DEBUG: (0.000) SELECT "student_userstanding"."id", "student_userstanding"."user_id", "student_userstanding"."account_status", "student_userstanding"."changed_by_id", "student_userstanding"."standing_last_changed_at" FROM "student_userstanding" WHERE "student_userstanding"."user_id" IS NULL; args=() | |
| tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/api/server/users", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/api/server/users"}, "time": "2014-10-07T16:48:15.150361+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"{\\\"username\\\": \\\"f0d0fc0b-cb8d-40ae-a281-cb2cff4750f177\\\", \\\"first_name\\\": \\\"ee01bad4-8656-4be9-8ed3-d9f645a1a871\\\", \\\"password\\\": \\\"Test.Me64!\\\", \\\"email\\\": \\\"dcee18c6-d3c4-4795-93da-742c4e33500a@test.org\\\", \\\"last_name\\\": \\\"cc0bfa64-188e-479a-a804-081e0ad3ee82\\\"}\": [\"\"]}, \"GET\": {}}", "agent": "", "page": null} | |
| django.db.backends: DEBUG: (0.000) SELECT "splash_splashconfig"."id", "splash_splashconfig"."change_date", "splash_splashconfig"."changed_by_id", "splash_splashconfig"."enabled", "splash_splashconfig"."cookie_name", "splash_splashconfig"."cookie_allowed_values", "splash_splashconfig"."unaffected_usernames", "splash_splashconfig"."unaffected_url_paths", "splash_splashconfig"."redirect_url" FROM "splash_splashconfig" ORDER BY "splash_splashconfig"."change_date" DESC LIMIT 1; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "dark_lang_darklangconfig"."id", "dark_lang_darklangconfig"."change_date", "dark_lang_darklangconfig"."changed_by_id", "dark_lang_darklangconfig"."enabled", "dark_lang_darklangconfig"."released_languages" FROM "dark_lang_darklangconfig" ORDER BY "dark_lang_darklangconfig"."change_date" DESC LIMIT 1; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "embargo_embargoedcourse"."id", "embargo_embargoedcourse"."course_id", "embargo_embargoedcourse"."embargoed" FROM "embargo_embargoedcourse" WHERE "embargo_embargoedcourse"."course_id" = ; args=('',) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_user" ("username", "first_name", "last_name", "email", "password", "is_staff", "is_active", "is_superuser", "last_login", "date_joined") VALUES (f0d0fc0b-cb8d-40ae-a281-cb2cff4750f177, , , dcee18c6-d3c4-4795-93da-742c4e33500a@test.org, , False, True, False, 2014-10-07 16:48:15.154918, 2014-10-07 16:48:15.154956); args=[u'f0d0fc0b-cb8d-40ae-a281-cb2cff4750f177', '', '', u'dcee18c6-d3c4-4795-93da-742c4e33500a@test.org', '', False, True, False, u'2014-10-07 16:48:15.154918', u'2014-10-07 16:48:15.154956'] | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."id" = 2 LIMIT 1; args=(2,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "auth_user" SET "username" = f0d0fc0b-cb8d-40ae-a281-cb2cff4750f177, "first_name" = ee01bad4-8656-4be9-8ed3-d9f645a1a871, "last_name" = cc0bfa64-188e-479a-a804-081e0ad3ee82, "email" = dcee18c6-d3c4-4795-93da-742c4e33500a@test.org, "password" = sha1$gkf2uh9HPhNN$08db2241cd1b104929298060866f49fe90908217, "is_staff" = False, "is_active" = True, "is_superuser" = False, "last_login" = 2014-10-07 16:48:15.154918, "date_joined" = 2014-10-07 16:48:15.154956 WHERE "auth_user"."id" = 2 ; args=(u'f0d0fc0b-cb8d-40ae-a281-cb2cff4750f177', u'ee01bad4-8656-4be9-8ed3-d9f645a1a871', u'cc0bfa64-188e-479a-a804-081e0ad3ee82', u'dcee18c6-d3c4-4795-93da-742c4e33500a@test.org', 'sha1$gkf2uh9HPhNN$08db2241cd1b104929298060866f49fe90908217', False, True, False, u'2014-10-07 16:48:15.154918', u'2014-10-07 16:48:15.154956', 2) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_userprofile" ("user_id", "name", "meta", "courseware", "language", "location", "year_of_birth", "gender", "level_of_education", "mailing_address", "city", "country", "goals", "allow_certificate", "title", "avatar_url") VALUES (2, ee01bad4-8656-4be9-8ed3-d9f645a1a871 cc0bfa64-188e-479a-a804-081e0ad3ee82, , course.xml, , , None, , , None, , , None, True, , None); args=[2, 'ee01bad4-8656-4be9-8ed3-d9f645a1a871 cc0bfa64-188e-479a-a804-081e0ad3ee82', '', u'course.xml', '', '', None, '', '', None, '', u'', None, True, '', None] | |
| django.db.backends: DEBUG: (0.000) SELECT "user_api_userpreference"."id", "user_api_userpreference"."user_id", "user_api_userpreference"."key", "user_api_userpreference"."value" FROM "user_api_userpreference" WHERE ("user_api_userpreference"."user_id" = 2 AND "user_api_userpreference"."key" = pref-lang ); args=(2, 'pref-lang') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "user_api_userpreference" ("user_id", "key", "value") VALUES (2, pref-lang, ); args=[2, 'pref-lang', ''] | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "user_api_userpreference" WHERE "user_api_userpreference"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "user_api_userpreference" SET "user_id" = 2, "key" = pref-lang, "value" = en WHERE "user_api_userpreference"."id" = 1 ; args=(2, 'pref-lang', 'en', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "user_api_userpreference"."id", "user_api_userpreference"."user_id", "user_api_userpreference"."key", "user_api_userpreference"."value" FROM "user_api_userpreference" WHERE ("user_api_userpreference"."user_id" = 2 AND "user_api_userpreference"."key" = notification_pref ); args=(2, 'notification_pref') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "user_api_userpreference" ("user_id", "key", "value") VALUES (2, notification_pref, Jg9q_ZsdJxtNAGtp9N-szxeDUrs9w1-_A-aym-J9A87097AfK27l2LmwZ3ec28fYibMdXFyeELGffFnNfp8rdQ==); args=[2, 'notification_pref', 'Jg9q_ZsdJxtNAGtp9N-szxeDUrs9w1-_A-aym-J9A87097AfK27l2LmwZ3ec28fYibMdXFyeELGffFnNfp8rdQ=='] | |
| audit: INFO: API::New account created with user-id - 2 | |
| django.db.backends: DEBUG: (0.000) SELECT "student_userstanding"."id", "student_userstanding"."user_id", "student_userstanding"."account_status", "student_userstanding"."changed_by_id", "student_userstanding"."standing_last_changed_at" FROM "student_userstanding" WHERE "student_userstanding"."user_id" IS NULL; args=() | |
| tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/api/server/users/2/courses", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/api/server/users/2/courses"}, "time": "2014-10-07T16:48:15.167851+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"{\\\"course_id\\\": \\\"TUCDD/999/TUCDD1\\\"}\": [\"\"]}, \"GET\": {}}", "agent": "", "page": null} | |
| django.db.backends: DEBUG: (0.000) SELECT "embargo_embargoedcourse"."id", "embargo_embargoedcourse"."course_id", "embargo_embargoedcourse"."embargoed" FROM "embargo_embargoedcourse" WHERE "embargo_embargoedcourse"."course_id" = ; args=('',) | |
| django.db.backends: DEBUG: (0.000) SELECT "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_superuser", "auth_user"."last_login", "auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."id" = 2 ; args=(2,) | |
| django.db.backends: DEBUG: (0.000) SELECT "student_courseenrollment"."id", "student_courseenrollment"."user_id", "student_courseenrollment"."course_id", "student_courseenrollment"."created", "student_courseenrollment"."is_active", "student_courseenrollment"."mode" FROM "student_courseenrollment" WHERE ("student_courseenrollment"."course_id" = TUCDD/999/TUCDD1 AND "student_courseenrollment"."user_id" = 2 ); args=(u'TUCDD/999/TUCDD1', 2) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "student_courseenrollment" ("user_id", "course_id", "created", "is_active", "mode") VALUES (2, TUCDD/999/TUCDD1, 2014-10-07 16:48:15.175122, True, honor); args=[2, u'TUCDD/999/TUCDD1', u'2014-10-07 16:48:15.175122', True, u'honor'] | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = TUCDD/999/TUCDD1 AND "django_comment_client_role"."name" = Student ); args=(u'TUCDD/999/TUCDD1', 'Student') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "django_comment_client_role" ("name", "course_id") VALUES (Student, TUCDD/999/TUCDD1); args=['Student', u'TUCDD/999/TUCDD1'] | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role_users"."role_id" FROM "django_comment_client_role_users" WHERE ("django_comment_client_role_users"."role_id" IN (2) AND "django_comment_client_role_users"."user_id" = 2 ); args=(2, 2) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "django_comment_client_role_users" ("role_id", "user_id") SELECT 2 AS "role_id", 2 AS "user_id"; args=(2, 2) | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "student_courseenrollment" WHERE "student_courseenrollment"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "student_courseenrollment" SET "user_id" = 2, "course_id" = TUCDD/999/TUCDD1, "created" = 2014-10-07 16:48:15.175122, "is_active" = False, "mode" = honor WHERE "student_courseenrollment"."id" = 1 ; args=(2, u'TUCDD/999/TUCDD1', u'2014-10-07 16:48:15.175122', False, 'honor', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = TUCDD/999/TUCDD1 AND "django_comment_client_role"."name" = Student ); args=(u'TUCDD/999/TUCDD1', 'Student') | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role_users"."role_id" FROM "django_comment_client_role_users" WHERE ("django_comment_client_role_users"."role_id" IN (2) AND "django_comment_client_role_users"."user_id" = 2 ); args=(2, 2) | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "student_courseenrollment" WHERE "student_courseenrollment"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "student_courseenrollment" SET "user_id" = 2, "course_id" = TUCDD/999/TUCDD1, "created" = 2014-10-07 16:48:15.175122, "is_active" = True, "mode" = honor WHERE "student_courseenrollment"."id" = 1 ; args=(2, u'TUCDD/999/TUCDD1', u'2014-10-07 16:48:15.175122', True, 'honor', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = TUCDD/999/TUCDD1 AND "django_comment_client_role"."name" = Student ); args=(u'TUCDD/999/TUCDD1', 'Student') | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role_users"."role_id" FROM "django_comment_client_role_users" WHERE ("django_comment_client_role_users"."role_id" IN (2) AND "django_comment_client_role_users"."user_id" = 2 ); args=(2, 2) | |
| tracking: INFO: {"username": "", "event_source": "server", "name": "edx.course.enrollment.activated", "time": "2014-10-07T16:48:15.185622+00:00", "agent": "", "page": null, "host": "testserver", "session": "", "context": {"user_id": "", "org_id": "TUCDD", "course_id": "TUCDD/999/TUCDD1", "path": "/api/server/users/2/courses"}, "ip": "127.0.0.1", "event": {"course_id": "TUCDD/999/TUCDD1", "user_id": 2, "mode": "honor"}, "event_type": "edx.course.enrollment.activated"} | |
| root: ERROR: Uncaught exception from <class 'django.test.client.ClientHandler'> | |
| Traceback (most recent call last): | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response | |
| response = callback(request, *callback_args, **callback_kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/compat.py", line 120, in view | |
| return self.dispatch(request, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view | |
| return view_func(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 326, in dispatch | |
| response = self.handle_exception(exc) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 323, in dispatch | |
| response = handler(request, *args, **kwargs) | |
| File "/edx/app/edxapp/edx-platform/lms/djangoapps/api_manager/users/views.py", line 728, in post | |
| default_cohort = get_cohort_by_name(course_id, CourseUserGroup.default_cohort_name) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/course_groups/cohorts.py", line 202, in get_cohort_by_name | |
| name=name | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py", line 131, in get | |
| return self.get_query_set().get(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 358, in get | |
| clone = self.filter(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 624, in filter | |
| return self._filter_or_exclude(False, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 642, in _filter_or_exclude | |
| clone.query.add_q(Q(*args, **kwargs)) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1250, in add_q | |
| can_reuse=used_aliases, force_having=force_having) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1185, in add_filter | |
| connector) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 69, in add | |
| value = obj.prepare(lookup_type, value) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 320, in prepare | |
| return self.field.get_prep_lookup(lookup_type, value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 103, in get_prep_lookup | |
| _strip_value(value, lookup) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 310, in get_prep_lookup | |
| return self.get_prep_value(value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 110, in get_prep_value | |
| assert isinstance(value, CourseKey) | |
| AssertionError | |
| django.request: ERROR: Internal Server Error: /api/server/users/2/courses | |
| Traceback (most recent call last): | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response | |
| response = callback(request, *callback_args, **callback_kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/compat.py", line 120, in view | |
| return self.dispatch(request, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view | |
| return view_func(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 326, in dispatch | |
| response = self.handle_exception(exc) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 323, in dispatch | |
| response = handler(request, *args, **kwargs) | |
| File "/edx/app/edxapp/edx-platform/lms/djangoapps/api_manager/users/views.py", line 728, in post | |
| default_cohort = get_cohort_by_name(course_id, CourseUserGroup.default_cohort_name) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/course_groups/cohorts.py", line 202, in get_cohort_by_name | |
| name=name | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py", line 131, in get | |
| return self.get_query_set().get(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 358, in get | |
| clone = self.filter(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 624, in filter | |
| return self._filter_or_exclude(False, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 642, in _filter_or_exclude | |
| clone.query.add_q(Q(*args, **kwargs)) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1250, in add_q | |
| can_reuse=used_aliases, force_having=force_having) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1185, in add_filter | |
| connector) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 69, in add | |
| value = obj.prepare(lookup_type, value) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 320, in prepare | |
| return self.field.get_prep_lookup(lookup_type, value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 103, in get_prep_lookup | |
| _strip_value(value, lookup) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 310, in get_prep_lookup | |
| return self.get_prep_value(value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 110, in get_prep_value | |
| assert isinstance(value, CourseKey) | |
| AssertionError | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| --------------------- >> end captured logging << --------------------- | |
| ----------------------------------------------------------------------------- | |
| 2) FAIL: test_user_courses_detail_get (api_manager.users.tests.UsersApiTests) | |
| Traceback (most recent call last): | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/mock.py line 1618 in _inner | |
| return f(*args, **kw) | |
| lms/djangoapps/api_manager/users/tests.py line 997 in test_user_courses_detail_get | |
| response = self.do_post(test_uri, data) | |
| lms/djangoapps/api_manager/users/tests.py line 137 in do_post | |
| uri, headers=headers, content_type='application/json', data=json_data) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/test/client.py line 449 in post | |
| response = super(Client, self).post(path, data=data, content_type=content_type, **extra) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/test/client.py line 262 in post | |
| return self.request(**r) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py line 111 in get_response | |
| response = callback(request, *callback_args, **callback_kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/compat.py line 120 in view | |
| return self.dispatch(request, *args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py line 77 in wrapped_view | |
| return view_func(*args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py line 326 in dispatch | |
| response = self.handle_exception(exc) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py line 323 in dispatch | |
| response = handler(request, *args, **kwargs) | |
| lms/djangoapps/api_manager/users/views.py line 728 in post | |
| default_cohort = get_cohort_by_name(course_id, CourseUserGroup.default_cohort_name) | |
| common/djangoapps/course_groups/cohorts.py line 202 in get_cohort_by_name | |
| name=name | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py line 131 in get | |
| return self.get_query_set().get(*args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py line 358 in get | |
| clone = self.filter(*args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py line 624 in filter | |
| return self._filter_or_exclude(False, *args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py line 642 in _filter_or_exclude | |
| clone.query.add_q(Q(*args, **kwargs)) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py line 1250 in add_q | |
| can_reuse=used_aliases, force_having=force_having) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py line 1185 in add_filter | |
| connector) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py line 69 in add | |
| value = obj.prepare(lookup_type, value) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py line 320 in prepare | |
| return self.field.get_prep_lookup(lookup_type, value) | |
| common/djangoapps/xmodule_django/models.py line 103 in get_prep_lookup | |
| _strip_value(value, lookup) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py line 310 in get_prep_lookup | |
| return self.get_prep_value(value) | |
| common/djangoapps/xmodule_django/models.py line 110 in get_prep_value | |
| assert isinstance(value, CourseKey) | |
| AssertionError: | |
| -------------------- >> begin captured logging << -------------------- | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'start': datetime.datetime(2014, 6, 16, 14, 30), 'run': 'USERTEST1', 'end': datetime.datetime(2015, 1, 16, 14, 30), 'display_name': 'TEST COURSE', 'org': 'USERTEST'}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(end=datetime.datetime(2015, 1, 16, 14, 30), modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='USERTEST', run='USERTEST1', display_name='TEST COURSE') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(run='USERTEST1', modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='USERTEST', end=datetime.datetime(2015, 1, 16, 14, 30), display_name='TEST COURSE') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(run='USERTEST1', modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='USERTEST', end=datetime.datetime(2015, 1, 16, 14, 30), display_name='TEST COURSE') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'videosequence', 'display_name': 'View_Sequence', 'data': '<html>4f5402ec-88a1-4d2b-9564-1a1251eae378</html>', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), 'due': datetime.datetime(2016, 5, 16, 14, 30)}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, due=datetime.datetime(2016, 5, 16, 14, 30), location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>4f5402ec-88a1-4d2b-9564-1a1251eae378</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'videosequence', 'View_Sequence'), data='<html>4f5402ec-88a1-4d2b-9564-1a1251eae378</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'videosequence', 'View_Sequence'), data='<html>4f5402ec-88a1-4d2b-9564-1a1251eae378</html>') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'org': 'TESTORG2', 'run': 'USERTEST2', 'display_name': 'TEST COURSE2'}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, display_name='TEST COURSE2', run='USERTEST2', number='999', org='TESTORG2') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, run='USERTEST2', display_name='TEST COURSE2', number='999', org='TESTORG2') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, run='USERTEST2', display_name='TEST COURSE2', number='999', org='TESTORG2') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'videosequence', 'display_name': 'View_Sequence2', 'data': '<html>4f5402ec-88a1-4d2b-9564-1a1251eae378</html>', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), 'due': datetime.datetime(2016, 5, 16, 14, 30)}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, due=datetime.datetime(2016, 5, 16, 14, 30), location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>4f5402ec-88a1-4d2b-9564-1a1251eae378</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'videosequence', 'View_Sequence2'), data='<html>4f5402ec-88a1-4d2b-9564-1a1251eae378</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'videosequence', 'View_Sequence2'), data='<html>4f5402ec-88a1-4d2b-9564-1a1251eae378</html>') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserFactory(extra={}) | |
| factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserFactory(username=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x6f097d0>>, first_name=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x6f09910>>, last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x6f09810>>, date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>)) | |
| factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x68a37e0> for seq=2525 | |
| factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x68a3b10> for seq=2525 | |
| factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x68a3750> for seq=2525 | |
| factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserFactory(username=u'robot2525', first_name=u'Robot2525', last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email=u'robot+test+2525@edx.org', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>)) | |
| factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserFactory(username=u'robot2525', first_name=u'Robot2525', last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email=u'robot+test+2525@edx.org', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>)) | |
| django.db.backends: DEBUG: (0.000) SELECT "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_superuser", "auth_user"."last_login", "auth_user"."date_joined" FROM "auth_user" WHERE ("auth_user"."username" = robot2525 AND "auth_user"."email" = robot+test+2525@edx.org ); args=(u'robot2525', u'robot+test+2525@edx.org') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_user" ("username", "first_name", "last_name", "email", "password", "is_staff", "is_active", "is_superuser", "last_login", "date_joined") VALUES (robot2525, Robot2525, Test, robot+test+2525@edx.org, , False, True, False, 2012-01-01 00:00:00, 2011-01-01 00:00:00); args=[u'robot2525', u'Robot2525', 'Test', u'robot+test+2525@edx.org', '', False, True, False, u'2012-01-01 00:00:00', u'2011-01-01 00:00:00'] | |
| factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.groups(robot2525, True, None) | |
| factory.generate: DEBUG: PostGenerationMethodCall: Calling <User: robot2525>.set_password(test) | |
| factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.profile(robot2525, True, None) | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "auth_user" SET "username" = robot2525, "first_name" = Robot2525, "last_name" = Test, "email" = robot+test+2525@edx.org, "password" = sha1$tfh5BfKkZQRi$e7ad3b3f5dbe35c08680ea92dc32a8e4cfa2d6f1, "is_staff" = False, "is_active" = True, "is_superuser" = False, "last_login" = 2012-01-01 00:00:00, "date_joined" = 2011-01-01 00:00:00 WHERE "auth_user"."id" = 1 ; args=(u'robot2525', u'Robot2525', 'Test', u'robot+test+2525@edx.org', 'sha1$tfh5BfKkZQRi$e7ad3b3f5dbe35c08680ea92dc32a8e4cfa2d6f1', False, True, False, u'2012-01-01 00:00:00', u'2011-01-01 00:00:00', 1) | |
| factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserProfileFactory(extra={'user': <User: robot2525>}) | |
| factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserProfileFactory(name=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x6f09750>>, mailing_address=None, level_of_education=None, user=<User: robot2525>, gender=u'm', goals=u'World domination') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <built-in method format of unicode object at 0x67ae1b0> on <LazyStub for student.tests.factories.UserProfileFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserProfileFactory(name=u'Robot2525 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: robot2525>) | |
| factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserProfileFactory(name=u'Robot2525 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: robot2525>) | |
| django.db.backends: DEBUG: (0.000) SELECT "auth_userprofile"."id", "auth_userprofile"."user_id", "auth_userprofile"."name", "auth_userprofile"."meta", "auth_userprofile"."courseware", "auth_userprofile"."language", "auth_userprofile"."location", "auth_userprofile"."year_of_birth", "auth_userprofile"."gender", "auth_userprofile"."level_of_education", "auth_userprofile"."mailing_address", "auth_userprofile"."city", "auth_userprofile"."country", "auth_userprofile"."goals", "auth_userprofile"."allow_certificate", "auth_userprofile"."title", "auth_userprofile"."avatar_url" FROM "auth_userprofile" WHERE "auth_userprofile"."user_id" = 1 ; args=(1,) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_userprofile" ("user_id", "name", "meta", "courseware", "language", "location", "year_of_birth", "gender", "level_of_education", "mailing_address", "city", "country", "goals", "allow_certificate", "title", "avatar_url") VALUES (1, Robot2525 Test, , course.xml, , , None, m, None, None, None, , World domination, True, None, None); args=[1, u'Robot2525 Test', '', u'course.xml', '', '', None, u'm', None, None, None, u'', u'World domination', True, None, None] | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "auth_user" SET "username" = robot2525, "first_name" = Robot2525, "last_name" = Test, "email" = robot+test+2525@edx.org, "password" = sha1$tfh5BfKkZQRi$e7ad3b3f5dbe35c08680ea92dc32a8e4cfa2d6f1, "is_staff" = False, "is_active" = True, "is_superuser" = False, "last_login" = 2012-01-01 00:00:00, "date_joined" = 2011-01-01 00:00:00 WHERE "auth_user"."id" = 1 ; args=(u'robot2525', u'Robot2525', 'Test', u'robot+test+2525@edx.org', 'sha1$tfh5BfKkZQRi$e7ad3b3f5dbe35c08680ea92dc32a8e4cfa2d6f1', False, True, False, u'2012-01-01 00:00:00', u'2011-01-01 00:00:00', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = USERTEST/999/USERTEST1 AND "django_comment_client_role"."name" = Moderator ); args=(u'USERTEST/999/USERTEST1', 'Moderator') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "django_comment_client_role" ("name", "course_id") VALUES (Moderator, USERTEST/999/USERTEST1); args=['Moderator', u'USERTEST/999/USERTEST1'] | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'start': datetime.datetime(2014, 6, 16, 14, 30), 'run': 'TUCDG1', 'end': datetime.datetime(2015, 1, 16, 14, 30), 'display_name': 'UserCoursesDetailTestCourse', 'org': 'TUCDG'}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(end=datetime.datetime(2015, 1, 16, 14, 30), modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='TUCDG', run='TUCDG1', display_name='UserCoursesDetailTestCourse') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(run='TUCDG1', modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='TUCDG', end=datetime.datetime(2015, 1, 16, 14, 30), display_name='UserCoursesDetailTestCourse') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(run='TUCDG1', modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='TUCDG', end=datetime.datetime(2015, 1, 16, 14, 30), display_name='UserCoursesDetailTestCourse') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'chapter', 'display_name': 'Overview', 'data': '<html>1be9a8f7-bb97-40af-a4b7-d8cb60cc18b4</html>', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('TUCDG', '999', 'TUCDG1', None, None), 'course', 'TUCDG1')}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='Overview', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDG', '999', 'TUCDG1', None, None), 'course', 'TUCDG1'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>1be9a8f7-bb97-40af-a4b7-d8cb60cc18b4</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='Overview', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDG', '999', 'TUCDG1', None, None), 'course', 'TUCDG1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDG', '999', 'TUCDG1', None, None), 'chapter', 'Overview'), data='<html>1be9a8f7-bb97-40af-a4b7-d8cb60cc18b4</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='Overview', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDG', '999', 'TUCDG1', None, None), 'course', 'TUCDG1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDG', '999', 'TUCDG1', None, None), 'chapter', 'Overview'), data='<html>1be9a8f7-bb97-40af-a4b7-d8cb60cc18b4</html>') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| django.db.backends: DEBUG: (0.000) SELECT "student_userstanding"."id", "student_userstanding"."user_id", "student_userstanding"."account_status", "student_userstanding"."changed_by_id", "student_userstanding"."standing_last_changed_at" FROM "student_userstanding" WHERE "student_userstanding"."user_id" IS NULL; args=() | |
| tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/api/server/users", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/api/server/users"}, "time": "2014-10-07T16:48:15.687176+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"{\\\"username\\\": \\\"9df2433b-f4f8-4d9a-b09f-9c2c90298a6f69\\\", \\\"first_name\\\": \\\"2f75197e-db95-4c0f-8012-995df54ca658\\\", \\\"password\\\": \\\"Test.Me64!\\\", \\\"email\\\": \\\"d9c6663b-3bda-47a4-8a14-4b07747d1755@test.org\\\", \\\"last_name\\\": \\\"bf1f37cd-8f89-4674-892b-899bdb8121fb\\\"}\": [\"\"]}, \"GET\": {}}", "agent": "", "page": null} | |
| django.db.backends: DEBUG: (0.000) SELECT "splash_splashconfig"."id", "splash_splashconfig"."change_date", "splash_splashconfig"."changed_by_id", "splash_splashconfig"."enabled", "splash_splashconfig"."cookie_name", "splash_splashconfig"."cookie_allowed_values", "splash_splashconfig"."unaffected_usernames", "splash_splashconfig"."unaffected_url_paths", "splash_splashconfig"."redirect_url" FROM "splash_splashconfig" ORDER BY "splash_splashconfig"."change_date" DESC LIMIT 1; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "dark_lang_darklangconfig"."id", "dark_lang_darklangconfig"."change_date", "dark_lang_darklangconfig"."changed_by_id", "dark_lang_darklangconfig"."enabled", "dark_lang_darklangconfig"."released_languages" FROM "dark_lang_darklangconfig" ORDER BY "dark_lang_darklangconfig"."change_date" DESC LIMIT 1; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "embargo_embargoedcourse"."id", "embargo_embargoedcourse"."course_id", "embargo_embargoedcourse"."embargoed" FROM "embargo_embargoedcourse" WHERE "embargo_embargoedcourse"."course_id" = ; args=('',) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_user" ("username", "first_name", "last_name", "email", "password", "is_staff", "is_active", "is_superuser", "last_login", "date_joined") VALUES (9df2433b-f4f8-4d9a-b09f-9c2c90298a6f69, , , d9c6663b-3bda-47a4-8a14-4b07747d1755@test.org, , False, True, False, 2014-10-07 16:48:15.691711, 2014-10-07 16:48:15.691728); args=[u'9df2433b-f4f8-4d9a-b09f-9c2c90298a6f69', '', '', u'd9c6663b-3bda-47a4-8a14-4b07747d1755@test.org', '', False, True, False, u'2014-10-07 16:48:15.691711', u'2014-10-07 16:48:15.691728'] | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."id" = 2 LIMIT 1; args=(2,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "auth_user" SET "username" = 9df2433b-f4f8-4d9a-b09f-9c2c90298a6f69, "first_name" = 2f75197e-db95-4c0f-8012-995df54ca658, "last_name" = bf1f37cd-8f89-4674-892b-899bdb8121fb, "email" = d9c6663b-3bda-47a4-8a14-4b07747d1755@test.org, "password" = sha1$pDLgiyOgvIad$056ee624633958be545bcb5fc5abe26264ed9775, "is_staff" = False, "is_active" = True, "is_superuser" = False, "last_login" = 2014-10-07 16:48:15.691711, "date_joined" = 2014-10-07 16:48:15.691728 WHERE "auth_user"."id" = 2 ; args=(u'9df2433b-f4f8-4d9a-b09f-9c2c90298a6f69', u'2f75197e-db95-4c0f-8012-995df54ca658', u'bf1f37cd-8f89-4674-892b-899bdb8121fb', u'd9c6663b-3bda-47a4-8a14-4b07747d1755@test.org', 'sha1$pDLgiyOgvIad$056ee624633958be545bcb5fc5abe26264ed9775', False, True, False, u'2014-10-07 16:48:15.691711', u'2014-10-07 16:48:15.691728', 2) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_userprofile" ("user_id", "name", "meta", "courseware", "language", "location", "year_of_birth", "gender", "level_of_education", "mailing_address", "city", "country", "goals", "allow_certificate", "title", "avatar_url") VALUES (2, 2f75197e-db95-4c0f-8012-995df54ca658 bf1f37cd-8f89-4674-892b-899bdb8121fb, , course.xml, , , None, , , None, , , None, True, , None); args=[2, '2f75197e-db95-4c0f-8012-995df54ca658 bf1f37cd-8f89-4674-892b-899bdb8121fb', '', u'course.xml', '', '', None, '', '', None, '', u'', None, True, '', None] | |
| django.db.backends: DEBUG: (0.000) SELECT "user_api_userpreference"."id", "user_api_userpreference"."user_id", "user_api_userpreference"."key", "user_api_userpreference"."value" FROM "user_api_userpreference" WHERE ("user_api_userpreference"."user_id" = 2 AND "user_api_userpreference"."key" = pref-lang ); args=(2, 'pref-lang') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "user_api_userpreference" ("user_id", "key", "value") VALUES (2, pref-lang, ); args=[2, 'pref-lang', ''] | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "user_api_userpreference" WHERE "user_api_userpreference"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "user_api_userpreference" SET "user_id" = 2, "key" = pref-lang, "value" = en WHERE "user_api_userpreference"."id" = 1 ; args=(2, 'pref-lang', 'en', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "user_api_userpreference"."id", "user_api_userpreference"."user_id", "user_api_userpreference"."key", "user_api_userpreference"."value" FROM "user_api_userpreference" WHERE ("user_api_userpreference"."user_id" = 2 AND "user_api_userpreference"."key" = notification_pref ); args=(2, 'notification_pref') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "user_api_userpreference" ("user_id", "key", "value") VALUES (2, notification_pref, VYsnN7JHTuW3kUa3dMKDoP9u9REbrCvwo2y5QCEq4S1iV5sizYXWgtQWUeI04Cs9njA_8MWCqoloqWUaR3Cfkg==); args=[2, 'notification_pref', 'VYsnN7JHTuW3kUa3dMKDoP9u9REbrCvwo2y5QCEq4S1iV5sizYXWgtQWUeI04Cs9njA_8MWCqoloqWUaR3Cfkg=='] | |
| audit: INFO: API::New account created with user-id - 2 | |
| django.db.backends: DEBUG: (0.000) SELECT "student_userstanding"."id", "student_userstanding"."user_id", "student_userstanding"."account_status", "student_userstanding"."changed_by_id", "student_userstanding"."standing_last_changed_at" FROM "student_userstanding" WHERE "student_userstanding"."user_id" IS NULL; args=() | |
| tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/api/server/users/2/courses", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/api/server/users/2/courses"}, "time": "2014-10-07T16:48:15.702389+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"{\\\"course_id\\\": \\\"TUCDG/999/TUCDG1\\\"}\": [\"\"]}, \"GET\": {}}", "agent": "", "page": null} | |
| django.db.backends: DEBUG: (0.000) SELECT "embargo_embargoedcourse"."id", "embargo_embargoedcourse"."course_id", "embargo_embargoedcourse"."embargoed" FROM "embargo_embargoedcourse" WHERE "embargo_embargoedcourse"."course_id" = ; args=('',) | |
| django.db.backends: DEBUG: (0.000) SELECT "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_superuser", "auth_user"."last_login", "auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."id" = 2 ; args=(2,) | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| django.db.backends: DEBUG: (0.000) SELECT "student_courseenrollment"."id", "student_courseenrollment"."user_id", "student_courseenrollment"."course_id", "student_courseenrollment"."created", "student_courseenrollment"."is_active", "student_courseenrollment"."mode" FROM "student_courseenrollment" WHERE ("student_courseenrollment"."course_id" = TUCDG/999/TUCDG1 AND "student_courseenrollment"."user_id" = 2 ); args=(u'TUCDG/999/TUCDG1', 2) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "student_courseenrollment" ("user_id", "course_id", "created", "is_active", "mode") VALUES (2, TUCDG/999/TUCDG1, 2014-10-07 16:48:15.711488, True, honor); args=[2, u'TUCDG/999/TUCDG1', u'2014-10-07 16:48:15.711488', True, u'honor'] | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = TUCDG/999/TUCDG1 AND "django_comment_client_role"."name" = Student ); args=(u'TUCDG/999/TUCDG1', 'Student') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "django_comment_client_role" ("name", "course_id") VALUES (Student, TUCDG/999/TUCDG1); args=['Student', u'TUCDG/999/TUCDG1'] | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role_users"."role_id" FROM "django_comment_client_role_users" WHERE ("django_comment_client_role_users"."role_id" IN (2) AND "django_comment_client_role_users"."user_id" = 2 ); args=(2, 2) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "django_comment_client_role_users" ("role_id", "user_id") SELECT 2 AS "role_id", 2 AS "user_id"; args=(2, 2) | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "student_courseenrollment" WHERE "student_courseenrollment"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "student_courseenrollment" SET "user_id" = 2, "course_id" = TUCDG/999/TUCDG1, "created" = 2014-10-07 16:48:15.711488, "is_active" = False, "mode" = honor WHERE "student_courseenrollment"."id" = 1 ; args=(2, u'TUCDG/999/TUCDG1', u'2014-10-07 16:48:15.711488', False, 'honor', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = TUCDG/999/TUCDG1 AND "django_comment_client_role"."name" = Student ); args=(u'TUCDG/999/TUCDG1', 'Student') | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role_users"."role_id" FROM "django_comment_client_role_users" WHERE ("django_comment_client_role_users"."role_id" IN (2) AND "django_comment_client_role_users"."user_id" = 2 ); args=(2, 2) | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "student_courseenrollment" WHERE "student_courseenrollment"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "student_courseenrollment" SET "user_id" = 2, "course_id" = TUCDG/999/TUCDG1, "created" = 2014-10-07 16:48:15.711488, "is_active" = True, "mode" = honor WHERE "student_courseenrollment"."id" = 1 ; args=(2, u'TUCDG/999/TUCDG1', u'2014-10-07 16:48:15.711488', True, 'honor', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = TUCDG/999/TUCDG1 AND "django_comment_client_role"."name" = Student ); args=(u'TUCDG/999/TUCDG1', 'Student') | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role_users"."role_id" FROM "django_comment_client_role_users" WHERE ("django_comment_client_role_users"."role_id" IN (2) AND "django_comment_client_role_users"."user_id" = 2 ); args=(2, 2) | |
| tracking: INFO: {"username": "", "event_source": "server", "name": "edx.course.enrollment.activated", "time": "2014-10-07T16:48:15.723199+00:00", "agent": "", "page": null, "host": "testserver", "session": "", "context": {"user_id": "", "org_id": "TUCDG", "course_id": "TUCDG/999/TUCDG1", "path": "/api/server/users/2/courses"}, "ip": "127.0.0.1", "event": {"course_id": "TUCDG/999/TUCDG1", "user_id": 2, "mode": "honor"}, "event_type": "edx.course.enrollment.activated"} | |
| root: ERROR: Uncaught exception from <class 'django.test.client.ClientHandler'> | |
| Traceback (most recent call last): | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response | |
| response = callback(request, *callback_args, **callback_kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/compat.py", line 120, in view | |
| return self.dispatch(request, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view | |
| return view_func(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 326, in dispatch | |
| response = self.handle_exception(exc) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 323, in dispatch | |
| response = handler(request, *args, **kwargs) | |
| File "/edx/app/edxapp/edx-platform/lms/djangoapps/api_manager/users/views.py", line 728, in post | |
| default_cohort = get_cohort_by_name(course_id, CourseUserGroup.default_cohort_name) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/course_groups/cohorts.py", line 202, in get_cohort_by_name | |
| name=name | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py", line 131, in get | |
| return self.get_query_set().get(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 358, in get | |
| clone = self.filter(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 624, in filter | |
| return self._filter_or_exclude(False, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 642, in _filter_or_exclude | |
| clone.query.add_q(Q(*args, **kwargs)) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1250, in add_q | |
| can_reuse=used_aliases, force_having=force_having) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1185, in add_filter | |
| connector) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 69, in add | |
| value = obj.prepare(lookup_type, value) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 320, in prepare | |
| return self.field.get_prep_lookup(lookup_type, value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 103, in get_prep_lookup | |
| _strip_value(value, lookup) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 310, in get_prep_lookup | |
| return self.get_prep_value(value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 110, in get_prep_value | |
| assert isinstance(value, CourseKey) | |
| AssertionError | |
| django.request: ERROR: Internal Server Error: /api/server/users/2/courses | |
| Traceback (most recent call last): | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response | |
| response = callback(request, *callback_args, **callback_kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/compat.py", line 120, in view | |
| return self.dispatch(request, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view | |
| return view_func(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 326, in dispatch | |
| response = self.handle_exception(exc) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 323, in dispatch | |
| response = handler(request, *args, **kwargs) | |
| File "/edx/app/edxapp/edx-platform/lms/djangoapps/api_manager/users/views.py", line 728, in post | |
| default_cohort = get_cohort_by_name(course_id, CourseUserGroup.default_cohort_name) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/course_groups/cohorts.py", line 202, in get_cohort_by_name | |
| name=name | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py", line 131, in get | |
| return self.get_query_set().get(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 358, in get | |
| clone = self.filter(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 624, in filter | |
| return self._filter_or_exclude(False, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 642, in _filter_or_exclude | |
| clone.query.add_q(Q(*args, **kwargs)) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1250, in add_q | |
| can_reuse=used_aliases, force_having=force_having) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1185, in add_filter | |
| connector) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 69, in add | |
| value = obj.prepare(lookup_type, value) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 320, in prepare | |
| return self.field.get_prep_lookup(lookup_type, value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 103, in get_prep_lookup | |
| _strip_value(value, lookup) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 310, in get_prep_lookup | |
| return self.get_prep_value(value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 110, in get_prep_value | |
| assert isinstance(value, CourseKey) | |
| AssertionError | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| django.db.backends: DEBUG: (0.001) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| --------------------- >> end captured logging << --------------------- | |
| ----------------------------------------------------------------------------- | |
| 3) FAIL: test_user_courses_detail_post_position_course_as_content (api_manager.users.tests.UsersApiTests) | |
| Traceback (most recent call last): | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/mock.py line 1618 in _inner | |
| return f(*args, **kw) | |
| lms/djangoapps/api_manager/users/tests.py line 942 in test_user_courses_detail_post_position_course_as_content | |
| response = self.do_post(test_uri, data) | |
| lms/djangoapps/api_manager/users/tests.py line 137 in do_post | |
| uri, headers=headers, content_type='application/json', data=json_data) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/test/client.py line 449 in post | |
| response = super(Client, self).post(path, data=data, content_type=content_type, **extra) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/test/client.py line 262 in post | |
| return self.request(**r) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py line 111 in get_response | |
| response = callback(request, *callback_args, **callback_kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/compat.py line 120 in view | |
| return self.dispatch(request, *args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py line 77 in wrapped_view | |
| return view_func(*args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py line 326 in dispatch | |
| response = self.handle_exception(exc) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py line 323 in dispatch | |
| response = handler(request, *args, **kwargs) | |
| lms/djangoapps/api_manager/users/views.py line 728 in post | |
| default_cohort = get_cohort_by_name(course_id, CourseUserGroup.default_cohort_name) | |
| common/djangoapps/course_groups/cohorts.py line 202 in get_cohort_by_name | |
| name=name | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py line 131 in get | |
| return self.get_query_set().get(*args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py line 358 in get | |
| clone = self.filter(*args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py line 624 in filter | |
| return self._filter_or_exclude(False, *args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py line 642 in _filter_or_exclude | |
| clone.query.add_q(Q(*args, **kwargs)) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py line 1250 in add_q | |
| can_reuse=used_aliases, force_having=force_having) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py line 1185 in add_filter | |
| connector) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py line 69 in add | |
| value = obj.prepare(lookup_type, value) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py line 320 in prepare | |
| return self.field.get_prep_lookup(lookup_type, value) | |
| common/djangoapps/xmodule_django/models.py line 103 in get_prep_lookup | |
| _strip_value(value, lookup) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py line 310 in get_prep_lookup | |
| return self.get_prep_value(value) | |
| common/djangoapps/xmodule_django/models.py line 110 in get_prep_value | |
| assert isinstance(value, CourseKey) | |
| AssertionError: | |
| -------------------- >> begin captured logging << -------------------- | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'start': datetime.datetime(2014, 6, 16, 14, 30), 'run': 'USERTEST1', 'end': datetime.datetime(2015, 1, 16, 14, 30), 'display_name': 'TEST COURSE', 'org': 'USERTEST'}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(end=datetime.datetime(2015, 1, 16, 14, 30), modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='USERTEST', run='USERTEST1', display_name='TEST COURSE') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(run='USERTEST1', modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='USERTEST', end=datetime.datetime(2015, 1, 16, 14, 30), display_name='TEST COURSE') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(run='USERTEST1', modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='USERTEST', end=datetime.datetime(2015, 1, 16, 14, 30), display_name='TEST COURSE') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'videosequence', 'display_name': 'View_Sequence', 'data': '<html>25f9392b-d994-46ae-bd20-6306ca9abd7d</html>', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), 'due': datetime.datetime(2016, 5, 16, 14, 30)}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, due=datetime.datetime(2016, 5, 16, 14, 30), location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>25f9392b-d994-46ae-bd20-6306ca9abd7d</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'videosequence', 'View_Sequence'), data='<html>25f9392b-d994-46ae-bd20-6306ca9abd7d</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'videosequence', 'View_Sequence'), data='<html>25f9392b-d994-46ae-bd20-6306ca9abd7d</html>') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'org': 'TESTORG2', 'run': 'USERTEST2', 'display_name': 'TEST COURSE2'}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, display_name='TEST COURSE2', run='USERTEST2', number='999', org='TESTORG2') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, run='USERTEST2', display_name='TEST COURSE2', number='999', org='TESTORG2') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, run='USERTEST2', display_name='TEST COURSE2', number='999', org='TESTORG2') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'videosequence', 'display_name': 'View_Sequence2', 'data': '<html>25f9392b-d994-46ae-bd20-6306ca9abd7d</html>', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), 'due': datetime.datetime(2016, 5, 16, 14, 30)}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, due=datetime.datetime(2016, 5, 16, 14, 30), location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>25f9392b-d994-46ae-bd20-6306ca9abd7d</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'videosequence', 'View_Sequence2'), data='<html>25f9392b-d994-46ae-bd20-6306ca9abd7d</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'videosequence', 'View_Sequence2'), data='<html>25f9392b-d994-46ae-bd20-6306ca9abd7d</html>') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserFactory(extra={}) | |
| factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserFactory(username=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x6f097d0>>, first_name=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x6f09910>>, last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x6f09810>>, date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>)) | |
| factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x68a37e0> for seq=2530 | |
| factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x68a3b10> for seq=2530 | |
| factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x68a3750> for seq=2530 | |
| factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserFactory(username=u'robot2530', first_name=u'Robot2530', last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email=u'robot+test+2530@edx.org', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>)) | |
| factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserFactory(username=u'robot2530', first_name=u'Robot2530', last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email=u'robot+test+2530@edx.org', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>)) | |
| django.db.backends: DEBUG: (0.000) SELECT "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_superuser", "auth_user"."last_login", "auth_user"."date_joined" FROM "auth_user" WHERE ("auth_user"."username" = robot2530 AND "auth_user"."email" = robot+test+2530@edx.org ); args=(u'robot2530', u'robot+test+2530@edx.org') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_user" ("username", "first_name", "last_name", "email", "password", "is_staff", "is_active", "is_superuser", "last_login", "date_joined") VALUES (robot2530, Robot2530, Test, robot+test+2530@edx.org, , False, True, False, 2012-01-01 00:00:00, 2011-01-01 00:00:00); args=[u'robot2530', u'Robot2530', 'Test', u'robot+test+2530@edx.org', '', False, True, False, u'2012-01-01 00:00:00', u'2011-01-01 00:00:00'] | |
| factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.groups(robot2530, True, None) | |
| factory.generate: DEBUG: PostGenerationMethodCall: Calling <User: robot2530>.set_password(test) | |
| factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.profile(robot2530, True, None) | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "auth_user" SET "username" = robot2530, "first_name" = Robot2530, "last_name" = Test, "email" = robot+test+2530@edx.org, "password" = sha1$3oBHk22JoOCM$94542e762e19c8811da8e0b66aedc287313913fe, "is_staff" = False, "is_active" = True, "is_superuser" = False, "last_login" = 2012-01-01 00:00:00, "date_joined" = 2011-01-01 00:00:00 WHERE "auth_user"."id" = 1 ; args=(u'robot2530', u'Robot2530', 'Test', u'robot+test+2530@edx.org', 'sha1$3oBHk22JoOCM$94542e762e19c8811da8e0b66aedc287313913fe', False, True, False, u'2012-01-01 00:00:00', u'2011-01-01 00:00:00', 1) | |
| factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserProfileFactory(extra={'user': <User: robot2530>}) | |
| factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserProfileFactory(name=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x6f09750>>, mailing_address=None, level_of_education=None, user=<User: robot2530>, gender=u'm', goals=u'World domination') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <built-in method format of unicode object at 0x67ae1b0> on <LazyStub for student.tests.factories.UserProfileFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserProfileFactory(name=u'Robot2530 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: robot2530>) | |
| factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserProfileFactory(name=u'Robot2530 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: robot2530>) | |
| django.db.backends: DEBUG: (0.000) SELECT "auth_userprofile"."id", "auth_userprofile"."user_id", "auth_userprofile"."name", "auth_userprofile"."meta", "auth_userprofile"."courseware", "auth_userprofile"."language", "auth_userprofile"."location", "auth_userprofile"."year_of_birth", "auth_userprofile"."gender", "auth_userprofile"."level_of_education", "auth_userprofile"."mailing_address", "auth_userprofile"."city", "auth_userprofile"."country", "auth_userprofile"."goals", "auth_userprofile"."allow_certificate", "auth_userprofile"."title", "auth_userprofile"."avatar_url" FROM "auth_userprofile" WHERE "auth_userprofile"."user_id" = 1 ; args=(1,) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_userprofile" ("user_id", "name", "meta", "courseware", "language", "location", "year_of_birth", "gender", "level_of_education", "mailing_address", "city", "country", "goals", "allow_certificate", "title", "avatar_url") VALUES (1, Robot2530 Test, , course.xml, , , None, m, None, None, None, , World domination, True, None, None); args=[1, u'Robot2530 Test', '', u'course.xml', '', '', None, u'm', None, None, None, u'', u'World domination', True, None, None] | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "auth_user" SET "username" = robot2530, "first_name" = Robot2530, "last_name" = Test, "email" = robot+test+2530@edx.org, "password" = sha1$3oBHk22JoOCM$94542e762e19c8811da8e0b66aedc287313913fe, "is_staff" = False, "is_active" = True, "is_superuser" = False, "last_login" = 2012-01-01 00:00:00, "date_joined" = 2011-01-01 00:00:00 WHERE "auth_user"."id" = 1 ; args=(u'robot2530', u'Robot2530', 'Test', u'robot+test+2530@edx.org', 'sha1$3oBHk22JoOCM$94542e762e19c8811da8e0b66aedc287313913fe', False, True, False, u'2012-01-01 00:00:00', u'2011-01-01 00:00:00', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = USERTEST/999/USERTEST1 AND "django_comment_client_role"."name" = Moderator ); args=(u'USERTEST/999/USERTEST1', 'Moderator') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "django_comment_client_role" ("name", "course_id") VALUES (Moderator, USERTEST/999/USERTEST1); args=['Moderator', u'USERTEST/999/USERTEST1'] | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'org': 'TUCDPPCAS', 'run': 'TUCDPPCAS1'}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, display_name='Robot Super Course', run='TUCDPPCAS1', number='999', org='TUCDPPCAS') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, run='TUCDPPCAS1', display_name='Robot Super Course', number='999', org='TUCDPPCAS') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, run='TUCDPPCAS1', display_name='Robot Super Course', number='999', org='TUCDPPCAS') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'chapter', 'display_name': 'Chapter 1', 'data': '<html>42e79986-6e6f-4b26-9eb4-8f2a1362e5b5</html>', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAS', '999', 'TUCDPPCAS1', None, None), 'course', 'TUCDPPCAS1')}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='Chapter 1', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAS', '999', 'TUCDPPCAS1', None, None), 'course', 'TUCDPPCAS1'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>42e79986-6e6f-4b26-9eb4-8f2a1362e5b5</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='Chapter 1', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAS', '999', 'TUCDPPCAS1', None, None), 'course', 'TUCDPPCAS1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAS', '999', 'TUCDPPCAS1', None, None), 'chapter', 'Chapter_1'), data='<html>42e79986-6e6f-4b26-9eb4-8f2a1362e5b5</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='Chapter 1', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAS', '999', 'TUCDPPCAS1', None, None), 'course', 'TUCDPPCAS1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAS', '999', 'TUCDPPCAS1', None, None), 'chapter', 'Chapter_1'), data='<html>42e79986-6e6f-4b26-9eb4-8f2a1362e5b5</html>') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| django.db.backends: DEBUG: (0.000) SELECT "student_userstanding"."id", "student_userstanding"."user_id", "student_userstanding"."account_status", "student_userstanding"."changed_by_id", "student_userstanding"."standing_last_changed_at" FROM "student_userstanding" WHERE "student_userstanding"."user_id" IS NULL; args=() | |
| tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/api/server/users", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/api/server/users"}, "time": "2014-10-07T16:48:16.405894+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"{\\\"username\\\": \\\"09ffd650-c9e1-4c8d-8fcd-f689b6d0683948\\\", \\\"first_name\\\": \\\"ce9914e6-1211-43df-a917-6602767cc762\\\", \\\"password\\\": \\\"Test.Me64!\\\", \\\"email\\\": \\\"7bacef3e-ae11-43fd-9728-2b99d3f86694@test.org\\\", \\\"last_name\\\": \\\"09555158-4a98-4b59-93e3-8bbd609dcaa3\\\"}\": [\"\"]}, \"GET\": {}}", "agent": "", "page": null} | |
| django.db.backends: DEBUG: (0.000) SELECT "splash_splashconfig"."id", "splash_splashconfig"."change_date", "splash_splashconfig"."changed_by_id", "splash_splashconfig"."enabled", "splash_splashconfig"."cookie_name", "splash_splashconfig"."cookie_allowed_values", "splash_splashconfig"."unaffected_usernames", "splash_splashconfig"."unaffected_url_paths", "splash_splashconfig"."redirect_url" FROM "splash_splashconfig" ORDER BY "splash_splashconfig"."change_date" DESC LIMIT 1; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "dark_lang_darklangconfig"."id", "dark_lang_darklangconfig"."change_date", "dark_lang_darklangconfig"."changed_by_id", "dark_lang_darklangconfig"."enabled", "dark_lang_darklangconfig"."released_languages" FROM "dark_lang_darklangconfig" ORDER BY "dark_lang_darklangconfig"."change_date" DESC LIMIT 1; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "embargo_embargoedcourse"."id", "embargo_embargoedcourse"."course_id", "embargo_embargoedcourse"."embargoed" FROM "embargo_embargoedcourse" WHERE "embargo_embargoedcourse"."course_id" = ; args=('',) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_user" ("username", "first_name", "last_name", "email", "password", "is_staff", "is_active", "is_superuser", "last_login", "date_joined") VALUES (09ffd650-c9e1-4c8d-8fcd-f689b6d0683948, , , 7bacef3e-ae11-43fd-9728-2b99d3f86694@test.org, , False, True, False, 2014-10-07 16:48:16.410959, 2014-10-07 16:48:16.410973); args=[u'09ffd650-c9e1-4c8d-8fcd-f689b6d0683948', '', '', u'7bacef3e-ae11-43fd-9728-2b99d3f86694@test.org', '', False, True, False, u'2014-10-07 16:48:16.410959', u'2014-10-07 16:48:16.410973'] | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."id" = 2 LIMIT 1; args=(2,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "auth_user" SET "username" = 09ffd650-c9e1-4c8d-8fcd-f689b6d0683948, "first_name" = ce9914e6-1211-43df-a917-6602767cc762, "last_name" = 09555158-4a98-4b59-93e3-8bbd609dcaa3, "email" = 7bacef3e-ae11-43fd-9728-2b99d3f86694@test.org, "password" = sha1$6iwB9yD1pM9f$82a6e826b49e27a7705525d2199205a8760f19bd, "is_staff" = False, "is_active" = True, "is_superuser" = False, "last_login" = 2014-10-07 16:48:16.410959, "date_joined" = 2014-10-07 16:48:16.410973 WHERE "auth_user"."id" = 2 ; args=(u'09ffd650-c9e1-4c8d-8fcd-f689b6d0683948', u'ce9914e6-1211-43df-a917-6602767cc762', u'09555158-4a98-4b59-93e3-8bbd609dcaa3', u'7bacef3e-ae11-43fd-9728-2b99d3f86694@test.org', 'sha1$6iwB9yD1pM9f$82a6e826b49e27a7705525d2199205a8760f19bd', False, True, False, u'2014-10-07 16:48:16.410959', u'2014-10-07 16:48:16.410973', 2) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_userprofile" ("user_id", "name", "meta", "courseware", "language", "location", "year_of_birth", "gender", "level_of_education", "mailing_address", "city", "country", "goals", "allow_certificate", "title", "avatar_url") VALUES (2, ce9914e6-1211-43df-a917-6602767cc762 09555158-4a98-4b59-93e3-8bbd609dcaa3, , course.xml, , , None, , , None, , , None, True, , None); args=[2, 'ce9914e6-1211-43df-a917-6602767cc762 09555158-4a98-4b59-93e3-8bbd609dcaa3', '', u'course.xml', '', '', None, '', '', None, '', u'', None, True, '', None] | |
| django.db.backends: DEBUG: (0.000) SELECT "user_api_userpreference"."id", "user_api_userpreference"."user_id", "user_api_userpreference"."key", "user_api_userpreference"."value" FROM "user_api_userpreference" WHERE ("user_api_userpreference"."user_id" = 2 AND "user_api_userpreference"."key" = pref-lang ); args=(2, 'pref-lang') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "user_api_userpreference" ("user_id", "key", "value") VALUES (2, pref-lang, ); args=[2, 'pref-lang', ''] | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "user_api_userpreference" WHERE "user_api_userpreference"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "user_api_userpreference" SET "user_id" = 2, "key" = pref-lang, "value" = en WHERE "user_api_userpreference"."id" = 1 ; args=(2, 'pref-lang', 'en', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "user_api_userpreference"."id", "user_api_userpreference"."user_id", "user_api_userpreference"."key", "user_api_userpreference"."value" FROM "user_api_userpreference" WHERE ("user_api_userpreference"."user_id" = 2 AND "user_api_userpreference"."key" = notification_pref ); args=(2, 'notification_pref') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "user_api_userpreference" ("user_id", "key", "value") VALUES (2, notification_pref, 9XE1k5f-Ujs2ExKQKlhUZhujRvtdSpa9tmcOpFW7HtlKHlvW5fIsgI4QaPtYiCYwUXNs8NQjWDP3k9GDV-6pJA==); args=[2, 'notification_pref', '9XE1k5f-Ujs2ExKQKlhUZhujRvtdSpa9tmcOpFW7HtlKHlvW5fIsgI4QaPtYiCYwUXNs8NQjWDP3k9GDV-6pJA=='] | |
| audit: INFO: API::New account created with user-id - 2 | |
| django.db.backends: DEBUG: (0.000) SELECT "student_userstanding"."id", "student_userstanding"."user_id", "student_userstanding"."account_status", "student_userstanding"."changed_by_id", "student_userstanding"."standing_last_changed_at" FROM "student_userstanding" WHERE "student_userstanding"."user_id" IS NULL; args=() | |
| tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/api/server/users/2/courses", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/api/server/users/2/courses"}, "time": "2014-10-07T16:48:16.420912+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"{\\\"course_id\\\": \\\"TUCDPPCAS/999/TUCDPPCAS1\\\"}\": [\"\"]}, \"GET\": {}}", "agent": "", "page": null} | |
| django.db.backends: DEBUG: (0.000) SELECT "embargo_embargoedcourse"."id", "embargo_embargoedcourse"."course_id", "embargo_embargoedcourse"."embargoed" FROM "embargo_embargoedcourse" WHERE "embargo_embargoedcourse"."course_id" = ; args=('',) | |
| django.db.backends: DEBUG: (0.000) SELECT "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_superuser", "auth_user"."last_login", "auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."id" = 2 ; args=(2,) | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| django.db.backends: DEBUG: (0.000) SELECT "student_courseenrollment"."id", "student_courseenrollment"."user_id", "student_courseenrollment"."course_id", "student_courseenrollment"."created", "student_courseenrollment"."is_active", "student_courseenrollment"."mode" FROM "student_courseenrollment" WHERE ("student_courseenrollment"."course_id" = TUCDPPCAS/999/TUCDPPCAS1 AND "student_courseenrollment"."user_id" = 2 ); args=(u'TUCDPPCAS/999/TUCDPPCAS1', 2) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "student_courseenrollment" ("user_id", "course_id", "created", "is_active", "mode") VALUES (2, TUCDPPCAS/999/TUCDPPCAS1, 2014-10-07 16:48:16.429667, True, honor); args=[2, u'TUCDPPCAS/999/TUCDPPCAS1', u'2014-10-07 16:48:16.429667', True, u'honor'] | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = TUCDPPCAS/999/TUCDPPCAS1 AND "django_comment_client_role"."name" = Student ); args=(u'TUCDPPCAS/999/TUCDPPCAS1', 'Student') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "django_comment_client_role" ("name", "course_id") VALUES (Student, TUCDPPCAS/999/TUCDPPCAS1); args=['Student', u'TUCDPPCAS/999/TUCDPPCAS1'] | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role_users"."role_id" FROM "django_comment_client_role_users" WHERE ("django_comment_client_role_users"."role_id" IN (2) AND "django_comment_client_role_users"."user_id" = 2 ); args=(2, 2) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "django_comment_client_role_users" ("role_id", "user_id") SELECT 2 AS "role_id", 2 AS "user_id"; args=(2, 2) | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "student_courseenrollment" WHERE "student_courseenrollment"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "student_courseenrollment" SET "user_id" = 2, "course_id" = TUCDPPCAS/999/TUCDPPCAS1, "created" = 2014-10-07 16:48:16.429667, "is_active" = False, "mode" = honor WHERE "student_courseenrollment"."id" = 1 ; args=(2, u'TUCDPPCAS/999/TUCDPPCAS1', u'2014-10-07 16:48:16.429667', False, 'honor', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = TUCDPPCAS/999/TUCDPPCAS1 AND "django_comment_client_role"."name" = Student ); args=(u'TUCDPPCAS/999/TUCDPPCAS1', 'Student') | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role_users"."role_id" FROM "django_comment_client_role_users" WHERE ("django_comment_client_role_users"."role_id" IN (2) AND "django_comment_client_role_users"."user_id" = 2 ); args=(2, 2) | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "student_courseenrollment" WHERE "student_courseenrollment"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "student_courseenrollment" SET "user_id" = 2, "course_id" = TUCDPPCAS/999/TUCDPPCAS1, "created" = 2014-10-07 16:48:16.429667, "is_active" = True, "mode" = honor WHERE "student_courseenrollment"."id" = 1 ; args=(2, u'TUCDPPCAS/999/TUCDPPCAS1', u'2014-10-07 16:48:16.429667', True, 'honor', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = TUCDPPCAS/999/TUCDPPCAS1 AND "django_comment_client_role"."name" = Student ); args=(u'TUCDPPCAS/999/TUCDPPCAS1', 'Student') | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role_users"."role_id" FROM "django_comment_client_role_users" WHERE ("django_comment_client_role_users"."role_id" IN (2) AND "django_comment_client_role_users"."user_id" = 2 ); args=(2, 2) | |
| tracking: INFO: {"username": "", "event_source": "server", "name": "edx.course.enrollment.activated", "time": "2014-10-07T16:48:16.440067+00:00", "agent": "", "page": null, "host": "testserver", "session": "", "context": {"user_id": "", "org_id": "TUCDPPCAS", "course_id": "TUCDPPCAS/999/TUCDPPCAS1", "path": "/api/server/users/2/courses"}, "ip": "127.0.0.1", "event": {"course_id": "TUCDPPCAS/999/TUCDPPCAS1", "user_id": 2, "mode": "honor"}, "event_type": "edx.course.enrollment.activated"} | |
| root: ERROR: Uncaught exception from <class 'django.test.client.ClientHandler'> | |
| Traceback (most recent call last): | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response | |
| response = callback(request, *callback_args, **callback_kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/compat.py", line 120, in view | |
| return self.dispatch(request, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view | |
| return view_func(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 326, in dispatch | |
| response = self.handle_exception(exc) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 323, in dispatch | |
| response = handler(request, *args, **kwargs) | |
| File "/edx/app/edxapp/edx-platform/lms/djangoapps/api_manager/users/views.py", line 728, in post | |
| default_cohort = get_cohort_by_name(course_id, CourseUserGroup.default_cohort_name) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/course_groups/cohorts.py", line 202, in get_cohort_by_name | |
| name=name | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py", line 131, in get | |
| return self.get_query_set().get(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 358, in get | |
| clone = self.filter(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 624, in filter | |
| return self._filter_or_exclude(False, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 642, in _filter_or_exclude | |
| clone.query.add_q(Q(*args, **kwargs)) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1250, in add_q | |
| can_reuse=used_aliases, force_having=force_having) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1185, in add_filter | |
| connector) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 69, in add | |
| value = obj.prepare(lookup_type, value) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 320, in prepare | |
| return self.field.get_prep_lookup(lookup_type, value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 103, in get_prep_lookup | |
| _strip_value(value, lookup) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 310, in get_prep_lookup | |
| return self.get_prep_value(value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 110, in get_prep_value | |
| assert isinstance(value, CourseKey) | |
| AssertionError | |
| django.request: ERROR: Internal Server Error: /api/server/users/2/courses | |
| Traceback (most recent call last): | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response | |
| response = callback(request, *callback_args, **callback_kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/compat.py", line 120, in view | |
| return self.dispatch(request, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view | |
| return view_func(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 326, in dispatch | |
| response = self.handle_exception(exc) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 323, in dispatch | |
| response = handler(request, *args, **kwargs) | |
| File "/edx/app/edxapp/edx-platform/lms/djangoapps/api_manager/users/views.py", line 728, in post | |
| default_cohort = get_cohort_by_name(course_id, CourseUserGroup.default_cohort_name) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/course_groups/cohorts.py", line 202, in get_cohort_by_name | |
| name=name | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py", line 131, in get | |
| return self.get_query_set().get(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 358, in get | |
| clone = self.filter(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 624, in filter | |
| return self._filter_or_exclude(False, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 642, in _filter_or_exclude | |
| clone.query.add_q(Q(*args, **kwargs)) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1250, in add_q | |
| can_reuse=used_aliases, force_having=force_having) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1185, in add_filter | |
| connector) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 69, in add | |
| value = obj.prepare(lookup_type, value) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 320, in prepare | |
| return self.field.get_prep_lookup(lookup_type, value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 103, in get_prep_lookup | |
| _strip_value(value, lookup) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 310, in get_prep_lookup | |
| return self.get_prep_value(value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 110, in get_prep_value | |
| assert isinstance(value, CourseKey) | |
| AssertionError | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| --------------------- >> end captured logging << --------------------- | |
| ----------------------------------------------------------------------------- | |
| 4) FAIL: test_user_courses_detail_post_position_course_as_descriptor (api_manager.users.tests.UsersApiTests) | |
| Traceback (most recent call last): | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/mock.py line 1618 in _inner | |
| return f(*args, **kw) | |
| lms/djangoapps/api_manager/users/tests.py line 866 in test_user_courses_detail_post_position_course_as_descriptor | |
| response = self.do_post(test_uri, data) | |
| lms/djangoapps/api_manager/users/tests.py line 137 in do_post | |
| uri, headers=headers, content_type='application/json', data=json_data) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/test/client.py line 449 in post | |
| response = super(Client, self).post(path, data=data, content_type=content_type, **extra) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/test/client.py line 262 in post | |
| return self.request(**r) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py line 111 in get_response | |
| response = callback(request, *callback_args, **callback_kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/compat.py line 120 in view | |
| return self.dispatch(request, *args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py line 77 in wrapped_view | |
| return view_func(*args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py line 326 in dispatch | |
| response = self.handle_exception(exc) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py line 323 in dispatch | |
| response = handler(request, *args, **kwargs) | |
| lms/djangoapps/api_manager/users/views.py line 728 in post | |
| default_cohort = get_cohort_by_name(course_id, CourseUserGroup.default_cohort_name) | |
| common/djangoapps/course_groups/cohorts.py line 202 in get_cohort_by_name | |
| name=name | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py line 131 in get | |
| return self.get_query_set().get(*args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py line 358 in get | |
| clone = self.filter(*args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py line 624 in filter | |
| return self._filter_or_exclude(False, *args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py line 642 in _filter_or_exclude | |
| clone.query.add_q(Q(*args, **kwargs)) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py line 1250 in add_q | |
| can_reuse=used_aliases, force_having=force_having) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py line 1185 in add_filter | |
| connector) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py line 69 in add | |
| value = obj.prepare(lookup_type, value) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py line 320 in prepare | |
| return self.field.get_prep_lookup(lookup_type, value) | |
| common/djangoapps/xmodule_django/models.py line 103 in get_prep_lookup | |
| _strip_value(value, lookup) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py line 310 in get_prep_lookup | |
| return self.get_prep_value(value) | |
| common/djangoapps/xmodule_django/models.py line 110 in get_prep_value | |
| assert isinstance(value, CourseKey) | |
| AssertionError: | |
| -------------------- >> begin captured logging << -------------------- | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'start': datetime.datetime(2014, 6, 16, 14, 30), 'run': 'USERTEST1', 'end': datetime.datetime(2015, 1, 16, 14, 30), 'display_name': 'TEST COURSE', 'org': 'USERTEST'}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(end=datetime.datetime(2015, 1, 16, 14, 30), modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='USERTEST', run='USERTEST1', display_name='TEST COURSE') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(run='USERTEST1', modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='USERTEST', end=datetime.datetime(2015, 1, 16, 14, 30), display_name='TEST COURSE') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(run='USERTEST1', modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='USERTEST', end=datetime.datetime(2015, 1, 16, 14, 30), display_name='TEST COURSE') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'videosequence', 'display_name': 'View_Sequence', 'data': '<html>f9b26109-d907-4c49-a57f-5a5019ab981a</html>', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), 'due': datetime.datetime(2016, 5, 16, 14, 30)}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, due=datetime.datetime(2016, 5, 16, 14, 30), location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>f9b26109-d907-4c49-a57f-5a5019ab981a</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'videosequence', 'View_Sequence'), data='<html>f9b26109-d907-4c49-a57f-5a5019ab981a</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'videosequence', 'View_Sequence'), data='<html>f9b26109-d907-4c49-a57f-5a5019ab981a</html>') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'org': 'TESTORG2', 'run': 'USERTEST2', 'display_name': 'TEST COURSE2'}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, display_name='TEST COURSE2', run='USERTEST2', number='999', org='TESTORG2') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, run='USERTEST2', display_name='TEST COURSE2', number='999', org='TESTORG2') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, run='USERTEST2', display_name='TEST COURSE2', number='999', org='TESTORG2') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'videosequence', 'display_name': 'View_Sequence2', 'data': '<html>f9b26109-d907-4c49-a57f-5a5019ab981a</html>', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), 'due': datetime.datetime(2016, 5, 16, 14, 30)}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, due=datetime.datetime(2016, 5, 16, 14, 30), location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>f9b26109-d907-4c49-a57f-5a5019ab981a</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'videosequence', 'View_Sequence2'), data='<html>f9b26109-d907-4c49-a57f-5a5019ab981a</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'videosequence', 'View_Sequence2'), data='<html>f9b26109-d907-4c49-a57f-5a5019ab981a</html>') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserFactory(extra={}) | |
| factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserFactory(username=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x6f097d0>>, first_name=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x6f09910>>, last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x6f09810>>, date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>)) | |
| factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x68a37e0> for seq=2531 | |
| factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x68a3b10> for seq=2531 | |
| factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x68a3750> for seq=2531 | |
| factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserFactory(username=u'robot2531', first_name=u'Robot2531', last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email=u'robot+test+2531@edx.org', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>)) | |
| factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserFactory(username=u'robot2531', first_name=u'Robot2531', last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email=u'robot+test+2531@edx.org', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>)) | |
| django.db.backends: DEBUG: (0.000) SELECT "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_superuser", "auth_user"."last_login", "auth_user"."date_joined" FROM "auth_user" WHERE ("auth_user"."username" = robot2531 AND "auth_user"."email" = robot+test+2531@edx.org ); args=(u'robot2531', u'robot+test+2531@edx.org') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_user" ("username", "first_name", "last_name", "email", "password", "is_staff", "is_active", "is_superuser", "last_login", "date_joined") VALUES (robot2531, Robot2531, Test, robot+test+2531@edx.org, , False, True, False, 2012-01-01 00:00:00, 2011-01-01 00:00:00); args=[u'robot2531', u'Robot2531', 'Test', u'robot+test+2531@edx.org', '', False, True, False, u'2012-01-01 00:00:00', u'2011-01-01 00:00:00'] | |
| factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.groups(robot2531, True, None) | |
| factory.generate: DEBUG: PostGenerationMethodCall: Calling <User: robot2531>.set_password(test) | |
| factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.profile(robot2531, True, None) | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "auth_user" SET "username" = robot2531, "first_name" = Robot2531, "last_name" = Test, "email" = robot+test+2531@edx.org, "password" = sha1$YzMams9S3PJ1$f768150a411298e1520f714de172be3b4c1deb23, "is_staff" = False, "is_active" = True, "is_superuser" = False, "last_login" = 2012-01-01 00:00:00, "date_joined" = 2011-01-01 00:00:00 WHERE "auth_user"."id" = 1 ; args=(u'robot2531', u'Robot2531', 'Test', u'robot+test+2531@edx.org', 'sha1$YzMams9S3PJ1$f768150a411298e1520f714de172be3b4c1deb23', False, True, False, u'2012-01-01 00:00:00', u'2011-01-01 00:00:00', 1) | |
| factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserProfileFactory(extra={'user': <User: robot2531>}) | |
| factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserProfileFactory(name=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x6f09750>>, mailing_address=None, level_of_education=None, user=<User: robot2531>, gender=u'm', goals=u'World domination') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <built-in method format of unicode object at 0x67ae1b0> on <LazyStub for student.tests.factories.UserProfileFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserProfileFactory(name=u'Robot2531 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: robot2531>) | |
| factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserProfileFactory(name=u'Robot2531 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: robot2531>) | |
| django.db.backends: DEBUG: (0.000) SELECT "auth_userprofile"."id", "auth_userprofile"."user_id", "auth_userprofile"."name", "auth_userprofile"."meta", "auth_userprofile"."courseware", "auth_userprofile"."language", "auth_userprofile"."location", "auth_userprofile"."year_of_birth", "auth_userprofile"."gender", "auth_userprofile"."level_of_education", "auth_userprofile"."mailing_address", "auth_userprofile"."city", "auth_userprofile"."country", "auth_userprofile"."goals", "auth_userprofile"."allow_certificate", "auth_userprofile"."title", "auth_userprofile"."avatar_url" FROM "auth_userprofile" WHERE "auth_userprofile"."user_id" = 1 ; args=(1,) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_userprofile" ("user_id", "name", "meta", "courseware", "language", "location", "year_of_birth", "gender", "level_of_education", "mailing_address", "city", "country", "goals", "allow_certificate", "title", "avatar_url") VALUES (1, Robot2531 Test, , course.xml, , , None, m, None, None, None, , World domination, True, None, None); args=[1, u'Robot2531 Test', '', u'course.xml', '', '', None, u'm', None, None, None, u'', u'World domination', True, None, None] | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "auth_user" SET "username" = robot2531, "first_name" = Robot2531, "last_name" = Test, "email" = robot+test+2531@edx.org, "password" = sha1$YzMams9S3PJ1$f768150a411298e1520f714de172be3b4c1deb23, "is_staff" = False, "is_active" = True, "is_superuser" = False, "last_login" = 2012-01-01 00:00:00, "date_joined" = 2011-01-01 00:00:00 WHERE "auth_user"."id" = 1 ; args=(u'robot2531', u'Robot2531', 'Test', u'robot+test+2531@edx.org', 'sha1$YzMams9S3PJ1$f768150a411298e1520f714de172be3b4c1deb23', False, True, False, u'2012-01-01 00:00:00', u'2011-01-01 00:00:00', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = USERTEST/999/USERTEST1 AND "django_comment_client_role"."name" = Moderator ); args=(u'USERTEST/999/USERTEST1', 'Moderator') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "django_comment_client_role" ("name", "course_id") VALUES (Moderator, USERTEST/999/USERTEST1); args=['Moderator', u'USERTEST/999/USERTEST1'] | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'org': 'TUCDPPCAD', 'run': 'TUCDPPCAD1'}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, display_name='Robot Super Course', run='TUCDPPCAD1', number='999', org='TUCDPPCAD') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, run='TUCDPPCAD1', display_name='Robot Super Course', number='999', org='TUCDPPCAD') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, run='TUCDPPCAD1', display_name='Robot Super Course', number='999', org='TUCDPPCAD') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'chapter', 'display_name': 'Chapter 1', 'data': '<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAD', '999', 'TUCDPPCAD1', None, None), 'course', 'TUCDPPCAD1')}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='Chapter 1', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAD', '999', 'TUCDPPCAD1', None, None), 'course', 'TUCDPPCAD1'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='Chapter 1', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAD', '999', 'TUCDPPCAD1', None, None), 'course', 'TUCDPPCAD1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAD', '999', 'TUCDPPCAD1', None, None), 'chapter', 'Chapter_1'), data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='Chapter 1', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAD', '999', 'TUCDPPCAD1', None, None), 'course', 'TUCDPPCAD1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAD', '999', 'TUCDPPCAD1', None, None), 'chapter', 'Chapter_1'), data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'chapter', 'display_name': 'Chapter 2', 'data': '<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAD', '999', 'TUCDPPCAD1', None, None), 'course', 'TUCDPPCAD1')}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='Chapter 2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAD', '999', 'TUCDPPCAD1', None, None), 'course', 'TUCDPPCAD1'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='Chapter 2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAD', '999', 'TUCDPPCAD1', None, None), 'course', 'TUCDPPCAD1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAD', '999', 'TUCDPPCAD1', None, None), 'chapter', 'Chapter_2'), data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='Chapter 2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAD', '999', 'TUCDPPCAD1', None, None), 'course', 'TUCDPPCAD1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAD', '999', 'TUCDPPCAD1', None, None), 'chapter', 'Chapter_2'), data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'chapter', 'display_name': 'Chapter 3', 'data': '<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAD', '999', 'TUCDPPCAD1', None, None), 'course', 'TUCDPPCAD1')}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='Chapter 3', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAD', '999', 'TUCDPPCAD1', None, None), 'course', 'TUCDPPCAD1'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='Chapter 3', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAD', '999', 'TUCDPPCAD1', None, None), 'course', 'TUCDPPCAD1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAD', '999', 'TUCDPPCAD1', None, None), 'chapter', 'Chapter_3'), data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='chapter', display_name='Chapter 3', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAD', '999', 'TUCDPPCAD1', None, None), 'course', 'TUCDPPCAD1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, location=BlockUsageLocator(SlashSeparatedCourseKey('TUCDPPCAD', '999', 'TUCDPPCAD1', None, None), 'chapter', 'Chapter_3'), data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'sequential', 'display_name': 'Sequential 1', 'data': '<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>', 'parent_location': BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), u'chapter', u'Chapter_3')}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='Sequential 1', parent_location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), u'chapter', u'Chapter_3'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='Sequential 1', parent_location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), u'chapter', u'Chapter_3'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), 'sequential', 'Sequential_1'), data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='Sequential 1', parent_location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), u'chapter', u'Chapter_3'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), 'sequential', 'Sequential_1'), data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'sequential', 'display_name': 'Sequential 2', 'data': '<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>', 'parent_location': BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), u'chapter', u'Chapter_3')}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='Sequential 2', parent_location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), u'chapter', u'Chapter_3'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='Sequential 2', parent_location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), u'chapter', u'Chapter_3'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), 'sequential', 'Sequential_2'), data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='sequential', display_name='Sequential 2', parent_location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), u'chapter', u'Chapter_3'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), 'sequential', 'Sequential_2'), data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'vertical', 'display_name': 'Vertical 1', 'data': '<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>', 'parent_location': BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), u'sequential', u'Sequential_2')}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='vertical', display_name='Vertical 1', parent_location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), u'sequential', u'Sequential_2'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='vertical', display_name='Vertical 1', parent_location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), u'sequential', u'Sequential_2'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), 'vertical', 'Vertical_1'), data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='vertical', display_name='Vertical 1', parent_location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), u'sequential', u'Sequential_2'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), 'vertical', 'Vertical_1'), data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'vertical', 'display_name': 'Vertical 2', 'data': '<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>', 'parent_location': BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), u'sequential', u'Sequential_2')}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='vertical', display_name='Vertical 2', parent_location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), u'sequential', u'Sequential_2'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='vertical', display_name='Vertical 2', parent_location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), u'sequential', u'Sequential_2'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), 'vertical', 'Vertical_2'), data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='vertical', display_name='Vertical 2', parent_location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), u'sequential', u'Sequential_2'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), 'vertical', 'Vertical_2'), data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'vertical', 'display_name': 'Vertical 3', 'data': '<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>', 'parent_location': BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), u'sequential', u'Sequential_2')}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='vertical', display_name='Vertical 3', parent_location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), u'sequential', u'Sequential_2'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='vertical', display_name='Vertical 3', parent_location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), u'sequential', u'Sequential_2'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), 'vertical', 'Vertical_3'), data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='vertical', display_name='Vertical 3', parent_location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), u'sequential', u'Sequential_2'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, location=BlockUsageLocator(CourseLocator(u'TUCDPPCAD', u'999', 'TUCDPPCAD1', None, None), 'vertical', 'Vertical_3'), data='<html>867855fe-00ee-46f3-80b0-af93fc4a8497</html>') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| django.db.backends: DEBUG: (0.000) SELECT "student_userstanding"."id", "student_userstanding"."user_id", "student_userstanding"."account_status", "student_userstanding"."changed_by_id", "student_userstanding"."standing_last_changed_at" FROM "student_userstanding" WHERE "student_userstanding"."user_id" IS NULL; args=() | |
| tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/api/server/users", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/api/server/users"}, "time": "2014-10-07T16:48:16.894571+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"{\\\"username\\\": \\\"26432768-69f6-4da2-aa8d-9f51ad4e88e326\\\", \\\"first_name\\\": \\\"94feba74-fb60-4fcd-bc93-4aa2c6bd0726\\\", \\\"password\\\": \\\"Test.Me64!\\\", \\\"email\\\": \\\"c11ee671-d1ff-4b07-a331-1c340f4e0dde@test.org\\\", \\\"last_name\\\": \\\"d3da5bc1-1fba-4eb8-b6be-57faae86f2c7\\\"}\": [\"\"]}, \"GET\": {}}", "agent": "", "page": null} | |
| django.db.backends: DEBUG: (0.000) SELECT "splash_splashconfig"."id", "splash_splashconfig"."change_date", "splash_splashconfig"."changed_by_id", "splash_splashconfig"."enabled", "splash_splashconfig"."cookie_name", "splash_splashconfig"."cookie_allowed_values", "splash_splashconfig"."unaffected_usernames", "splash_splashconfig"."unaffected_url_paths", "splash_splashconfig"."redirect_url" FROM "splash_splashconfig" ORDER BY "splash_splashconfig"."change_date" DESC LIMIT 1; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "dark_lang_darklangconfig"."id", "dark_lang_darklangconfig"."change_date", "dark_lang_darklangconfig"."changed_by_id", "dark_lang_darklangconfig"."enabled", "dark_lang_darklangconfig"."released_languages" FROM "dark_lang_darklangconfig" ORDER BY "dark_lang_darklangconfig"."change_date" DESC LIMIT 1; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "embargo_embargoedcourse"."id", "embargo_embargoedcourse"."course_id", "embargo_embargoedcourse"."embargoed" FROM "embargo_embargoedcourse" WHERE "embargo_embargoedcourse"."course_id" = ; args=('',) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_user" ("username", "first_name", "last_name", "email", "password", "is_staff", "is_active", "is_superuser", "last_login", "date_joined") VALUES (26432768-69f6-4da2-aa8d-9f51ad4e88e326, , , c11ee671-d1ff-4b07-a331-1c340f4e0dde@test.org, , False, True, False, 2014-10-07 16:48:16.899456, 2014-10-07 16:48:16.899471); args=[u'26432768-69f6-4da2-aa8d-9f51ad4e88e326', '', '', u'c11ee671-d1ff-4b07-a331-1c340f4e0dde@test.org', '', False, True, False, u'2014-10-07 16:48:16.899456', u'2014-10-07 16:48:16.899471'] | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."id" = 2 LIMIT 1; args=(2,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "auth_user" SET "username" = 26432768-69f6-4da2-aa8d-9f51ad4e88e326, "first_name" = 94feba74-fb60-4fcd-bc93-4aa2c6bd0726, "last_name" = d3da5bc1-1fba-4eb8-b6be-57faae86f2c7, "email" = c11ee671-d1ff-4b07-a331-1c340f4e0dde@test.org, "password" = sha1$FvvKsh5PUNJh$6cfdf3eee71e17fa6e60a01d3ecf66d3bf9d0adf, "is_staff" = False, "is_active" = True, "is_superuser" = False, "last_login" = 2014-10-07 16:48:16.899456, "date_joined" = 2014-10-07 16:48:16.899471 WHERE "auth_user"."id" = 2 ; args=(u'26432768-69f6-4da2-aa8d-9f51ad4e88e326', u'94feba74-fb60-4fcd-bc93-4aa2c6bd0726', u'd3da5bc1-1fba-4eb8-b6be-57faae86f2c7', u'c11ee671-d1ff-4b07-a331-1c340f4e0dde@test.org', 'sha1$FvvKsh5PUNJh$6cfdf3eee71e17fa6e60a01d3ecf66d3bf9d0adf', False, True, False, u'2014-10-07 16:48:16.899456', u'2014-10-07 16:48:16.899471', 2) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_userprofile" ("user_id", "name", "meta", "courseware", "language", "location", "year_of_birth", "gender", "level_of_education", "mailing_address", "city", "country", "goals", "allow_certificate", "title", "avatar_url") VALUES (2, 94feba74-fb60-4fcd-bc93-4aa2c6bd0726 d3da5bc1-1fba-4eb8-b6be-57faae86f2c7, , course.xml, , , None, , , None, , , None, True, , None); args=[2, '94feba74-fb60-4fcd-bc93-4aa2c6bd0726 d3da5bc1-1fba-4eb8-b6be-57faae86f2c7', '', u'course.xml', '', '', None, '', '', None, '', u'', None, True, '', None] | |
| django.db.backends: DEBUG: (0.000) SELECT "user_api_userpreference"."id", "user_api_userpreference"."user_id", "user_api_userpreference"."key", "user_api_userpreference"."value" FROM "user_api_userpreference" WHERE ("user_api_userpreference"."user_id" = 2 AND "user_api_userpreference"."key" = pref-lang ); args=(2, 'pref-lang') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "user_api_userpreference" ("user_id", "key", "value") VALUES (2, pref-lang, ); args=[2, 'pref-lang', ''] | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "user_api_userpreference" WHERE "user_api_userpreference"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "user_api_userpreference" SET "user_id" = 2, "key" = pref-lang, "value" = en WHERE "user_api_userpreference"."id" = 1 ; args=(2, 'pref-lang', 'en', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "user_api_userpreference"."id", "user_api_userpreference"."user_id", "user_api_userpreference"."key", "user_api_userpreference"."value" FROM "user_api_userpreference" WHERE ("user_api_userpreference"."user_id" = 2 AND "user_api_userpreference"."key" = notification_pref ); args=(2, 'notification_pref') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "user_api_userpreference" ("user_id", "key", "value") VALUES (2, notification_pref, exxZb62WsCcrXUupeeDhquvYwu4yuOvEix4sZu3EogLxyXRUp2UsqpObyd0QsODJ1ZlNH2OTv2ADhmBbVHrxCw==); args=[2, 'notification_pref', 'exxZb62WsCcrXUupeeDhquvYwu4yuOvEix4sZu3EogLxyXRUp2UsqpObyd0QsODJ1ZlNH2OTv2ADhmBbVHrxCw=='] | |
| audit: INFO: API::New account created with user-id - 2 | |
| django.db.backends: DEBUG: (0.000) SELECT "student_userstanding"."id", "student_userstanding"."user_id", "student_userstanding"."account_status", "student_userstanding"."changed_by_id", "student_userstanding"."standing_last_changed_at" FROM "student_userstanding" WHERE "student_userstanding"."user_id" IS NULL; args=() | |
| tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/api/server/users/2/courses", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/api/server/users/2/courses"}, "time": "2014-10-07T16:48:16.909146+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"{\\\"course_id\\\": \\\"TUCDPPCAD/999/TUCDPPCAD1\\\"}\": [\"\"]}, \"GET\": {}}", "agent": "", "page": null} | |
| django.db.backends: DEBUG: (0.000) SELECT "embargo_embargoedcourse"."id", "embargo_embargoedcourse"."course_id", "embargo_embargoedcourse"."embargoed" FROM "embargo_embargoedcourse" WHERE "embargo_embargoedcourse"."course_id" = ; args=('',) | |
| django.db.backends: DEBUG: (0.000) SELECT "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_superuser", "auth_user"."last_login", "auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."id" = 2 ; args=(2,) | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| django.db.backends: DEBUG: (0.000) SELECT "student_courseenrollment"."id", "student_courseenrollment"."user_id", "student_courseenrollment"."course_id", "student_courseenrollment"."created", "student_courseenrollment"."is_active", "student_courseenrollment"."mode" FROM "student_courseenrollment" WHERE ("student_courseenrollment"."course_id" = TUCDPPCAD/999/TUCDPPCAD1 AND "student_courseenrollment"."user_id" = 2 ); args=(u'TUCDPPCAD/999/TUCDPPCAD1', 2) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "student_courseenrollment" ("user_id", "course_id", "created", "is_active", "mode") VALUES (2, TUCDPPCAD/999/TUCDPPCAD1, 2014-10-07 16:48:16.916565, True, honor); args=[2, u'TUCDPPCAD/999/TUCDPPCAD1', u'2014-10-07 16:48:16.916565', True, u'honor'] | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = TUCDPPCAD/999/TUCDPPCAD1 AND "django_comment_client_role"."name" = Student ); args=(u'TUCDPPCAD/999/TUCDPPCAD1', 'Student') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "django_comment_client_role" ("name", "course_id") VALUES (Student, TUCDPPCAD/999/TUCDPPCAD1); args=['Student', u'TUCDPPCAD/999/TUCDPPCAD1'] | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role_users"."role_id" FROM "django_comment_client_role_users" WHERE ("django_comment_client_role_users"."role_id" IN (2) AND "django_comment_client_role_users"."user_id" = 2 ); args=(2, 2) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "django_comment_client_role_users" ("role_id", "user_id") SELECT 2 AS "role_id", 2 AS "user_id"; args=(2, 2) | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "student_courseenrollment" WHERE "student_courseenrollment"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "student_courseenrollment" SET "user_id" = 2, "course_id" = TUCDPPCAD/999/TUCDPPCAD1, "created" = 2014-10-07 16:48:16.916565, "is_active" = False, "mode" = honor WHERE "student_courseenrollment"."id" = 1 ; args=(2, u'TUCDPPCAD/999/TUCDPPCAD1', u'2014-10-07 16:48:16.916565', False, 'honor', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = TUCDPPCAD/999/TUCDPPCAD1 AND "django_comment_client_role"."name" = Student ); args=(u'TUCDPPCAD/999/TUCDPPCAD1', 'Student') | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role_users"."role_id" FROM "django_comment_client_role_users" WHERE ("django_comment_client_role_users"."role_id" IN (2) AND "django_comment_client_role_users"."user_id" = 2 ); args=(2, 2) | |
| django.db.backends: DEBUG: (0.001) SELECT (1) AS "a" FROM "student_courseenrollment" WHERE "student_courseenrollment"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "student_courseenrollment" SET "user_id" = 2, "course_id" = TUCDPPCAD/999/TUCDPPCAD1, "created" = 2014-10-07 16:48:16.916565, "is_active" = True, "mode" = honor WHERE "student_courseenrollment"."id" = 1 ; args=(2, u'TUCDPPCAD/999/TUCDPPCAD1', u'2014-10-07 16:48:16.916565', True, 'honor', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = TUCDPPCAD/999/TUCDPPCAD1 AND "django_comment_client_role"."name" = Student ); args=(u'TUCDPPCAD/999/TUCDPPCAD1', 'Student') | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role_users"."role_id" FROM "django_comment_client_role_users" WHERE ("django_comment_client_role_users"."role_id" IN (2) AND "django_comment_client_role_users"."user_id" = 2 ); args=(2, 2) | |
| tracking: INFO: {"username": "", "event_source": "server", "name": "edx.course.enrollment.activated", "time": "2014-10-07T16:48:16.926687+00:00", "agent": "", "page": null, "host": "testserver", "session": "", "context": {"user_id": "", "org_id": "TUCDPPCAD", "course_id": "TUCDPPCAD/999/TUCDPPCAD1", "path": "/api/server/users/2/courses"}, "ip": "127.0.0.1", "event": {"course_id": "TUCDPPCAD/999/TUCDPPCAD1", "user_id": 2, "mode": "honor"}, "event_type": "edx.course.enrollment.activated"} | |
| root: ERROR: Uncaught exception from <class 'django.test.client.ClientHandler'> | |
| Traceback (most recent call last): | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response | |
| response = callback(request, *callback_args, **callback_kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/compat.py", line 120, in view | |
| return self.dispatch(request, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view | |
| return view_func(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 326, in dispatch | |
| response = self.handle_exception(exc) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 323, in dispatch | |
| response = handler(request, *args, **kwargs) | |
| File "/edx/app/edxapp/edx-platform/lms/djangoapps/api_manager/users/views.py", line 728, in post | |
| default_cohort = get_cohort_by_name(course_id, CourseUserGroup.default_cohort_name) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/course_groups/cohorts.py", line 202, in get_cohort_by_name | |
| name=name | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py", line 131, in get | |
| return self.get_query_set().get(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 358, in get | |
| clone = self.filter(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 624, in filter | |
| return self._filter_or_exclude(False, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 642, in _filter_or_exclude | |
| clone.query.add_q(Q(*args, **kwargs)) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1250, in add_q | |
| can_reuse=used_aliases, force_having=force_having) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1185, in add_filter | |
| connector) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 69, in add | |
| value = obj.prepare(lookup_type, value) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 320, in prepare | |
| return self.field.get_prep_lookup(lookup_type, value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 103, in get_prep_lookup | |
| _strip_value(value, lookup) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 310, in get_prep_lookup | |
| return self.get_prep_value(value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 110, in get_prep_value | |
| assert isinstance(value, CourseKey) | |
| AssertionError | |
| django.request: ERROR: Internal Server Error: /api/server/users/2/courses | |
| Traceback (most recent call last): | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response | |
| response = callback(request, *callback_args, **callback_kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/compat.py", line 120, in view | |
| return self.dispatch(request, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view | |
| return view_func(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 326, in dispatch | |
| response = self.handle_exception(exc) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 323, in dispatch | |
| response = handler(request, *args, **kwargs) | |
| File "/edx/app/edxapp/edx-platform/lms/djangoapps/api_manager/users/views.py", line 728, in post | |
| default_cohort = get_cohort_by_name(course_id, CourseUserGroup.default_cohort_name) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/course_groups/cohorts.py", line 202, in get_cohort_by_name | |
| name=name | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py", line 131, in get | |
| return self.get_query_set().get(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 358, in get | |
| clone = self.filter(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 624, in filter | |
| return self._filter_or_exclude(False, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 642, in _filter_or_exclude | |
| clone.query.add_q(Q(*args, **kwargs)) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1250, in add_q | |
| can_reuse=used_aliases, force_having=force_having) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1185, in add_filter | |
| connector) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 69, in add | |
| value = obj.prepare(lookup_type, value) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 320, in prepare | |
| return self.field.get_prep_lookup(lookup_type, value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 103, in get_prep_lookup | |
| _strip_value(value, lookup) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 310, in get_prep_lookup | |
| return self.get_prep_value(value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 110, in get_prep_value | |
| assert isinstance(value, CourseKey) | |
| AssertionError | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| --------------------- >> end captured logging << --------------------- | |
| ----------------------------------------------------------------------------- | |
| 5) FAIL: test_user_courses_detail_post_position_invalid_course (api_manager.users.tests.UsersApiTests) | |
| Traceback (most recent call last): | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/mock.py line 1618 in _inner | |
| return f(*args, **kw) | |
| lms/djangoapps/api_manager/users/tests.py line 960 in test_user_courses_detail_post_position_invalid_course | |
| response = self.do_post(test_uri, data) | |
| lms/djangoapps/api_manager/users/tests.py line 137 in do_post | |
| uri, headers=headers, content_type='application/json', data=json_data) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/test/client.py line 449 in post | |
| response = super(Client, self).post(path, data=data, content_type=content_type, **extra) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/test/client.py line 262 in post | |
| return self.request(**r) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py line 111 in get_response | |
| response = callback(request, *callback_args, **callback_kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/compat.py line 120 in view | |
| return self.dispatch(request, *args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py line 77 in wrapped_view | |
| return view_func(*args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py line 326 in dispatch | |
| response = self.handle_exception(exc) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py line 323 in dispatch | |
| response = handler(request, *args, **kwargs) | |
| lms/djangoapps/api_manager/users/views.py line 728 in post | |
| default_cohort = get_cohort_by_name(course_id, CourseUserGroup.default_cohort_name) | |
| common/djangoapps/course_groups/cohorts.py line 202 in get_cohort_by_name | |
| name=name | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py line 131 in get | |
| return self.get_query_set().get(*args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py line 358 in get | |
| clone = self.filter(*args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py line 624 in filter | |
| return self._filter_or_exclude(False, *args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py line 642 in _filter_or_exclude | |
| clone.query.add_q(Q(*args, **kwargs)) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py line 1250 in add_q | |
| can_reuse=used_aliases, force_having=force_having) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py line 1185 in add_filter | |
| connector) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py line 69 in add | |
| value = obj.prepare(lookup_type, value) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py line 320 in prepare | |
| return self.field.get_prep_lookup(lookup_type, value) | |
| common/djangoapps/xmodule_django/models.py line 103 in get_prep_lookup | |
| _strip_value(value, lookup) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py line 310 in get_prep_lookup | |
| return self.get_prep_value(value) | |
| common/djangoapps/xmodule_django/models.py line 110 in get_prep_value | |
| assert isinstance(value, CourseKey) | |
| AssertionError: | |
| -------------------- >> begin captured logging << -------------------- | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'start': datetime.datetime(2014, 6, 16, 14, 30), 'run': 'USERTEST1', 'end': datetime.datetime(2015, 1, 16, 14, 30), 'display_name': 'TEST COURSE', 'org': 'USERTEST'}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(end=datetime.datetime(2015, 1, 16, 14, 30), modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='USERTEST', run='USERTEST1', display_name='TEST COURSE') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(run='USERTEST1', modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='USERTEST', end=datetime.datetime(2015, 1, 16, 14, 30), display_name='TEST COURSE') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(run='USERTEST1', modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='USERTEST', end=datetime.datetime(2015, 1, 16, 14, 30), display_name='TEST COURSE') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'videosequence', 'display_name': 'View_Sequence', 'data': '<html>be8eeeb5-a47c-4f62-bfb6-9d393b587e07</html>', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), 'due': datetime.datetime(2016, 5, 16, 14, 30)}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, due=datetime.datetime(2016, 5, 16, 14, 30), location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>be8eeeb5-a47c-4f62-bfb6-9d393b587e07</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'videosequence', 'View_Sequence'), data='<html>be8eeeb5-a47c-4f62-bfb6-9d393b587e07</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'videosequence', 'View_Sequence'), data='<html>be8eeeb5-a47c-4f62-bfb6-9d393b587e07</html>') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'org': 'TESTORG2', 'run': 'USERTEST2', 'display_name': 'TEST COURSE2'}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, display_name='TEST COURSE2', run='USERTEST2', number='999', org='TESTORG2') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, run='USERTEST2', display_name='TEST COURSE2', number='999', org='TESTORG2') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, run='USERTEST2', display_name='TEST COURSE2', number='999', org='TESTORG2') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'videosequence', 'display_name': 'View_Sequence2', 'data': '<html>be8eeeb5-a47c-4f62-bfb6-9d393b587e07</html>', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), 'due': datetime.datetime(2016, 5, 16, 14, 30)}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, due=datetime.datetime(2016, 5, 16, 14, 30), location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>be8eeeb5-a47c-4f62-bfb6-9d393b587e07</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'videosequence', 'View_Sequence2'), data='<html>be8eeeb5-a47c-4f62-bfb6-9d393b587e07</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'videosequence', 'View_Sequence2'), data='<html>be8eeeb5-a47c-4f62-bfb6-9d393b587e07</html>') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserFactory(extra={}) | |
| factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserFactory(username=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x6f097d0>>, first_name=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x6f09910>>, last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x6f09810>>, date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>)) | |
| factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x68a37e0> for seq=2532 | |
| factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x68a3b10> for seq=2532 | |
| factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x68a3750> for seq=2532 | |
| factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserFactory(username=u'robot2532', first_name=u'Robot2532', last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email=u'robot+test+2532@edx.org', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>)) | |
| factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserFactory(username=u'robot2532', first_name=u'Robot2532', last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email=u'robot+test+2532@edx.org', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>)) | |
| django.db.backends: DEBUG: (0.000) SELECT "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_superuser", "auth_user"."last_login", "auth_user"."date_joined" FROM "auth_user" WHERE ("auth_user"."username" = robot2532 AND "auth_user"."email" = robot+test+2532@edx.org ); args=(u'robot2532', u'robot+test+2532@edx.org') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_user" ("username", "first_name", "last_name", "email", "password", "is_staff", "is_active", "is_superuser", "last_login", "date_joined") VALUES (robot2532, Robot2532, Test, robot+test+2532@edx.org, , False, True, False, 2012-01-01 00:00:00, 2011-01-01 00:00:00); args=[u'robot2532', u'Robot2532', 'Test', u'robot+test+2532@edx.org', '', False, True, False, u'2012-01-01 00:00:00', u'2011-01-01 00:00:00'] | |
| factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.groups(robot2532, True, None) | |
| factory.generate: DEBUG: PostGenerationMethodCall: Calling <User: robot2532>.set_password(test) | |
| factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.profile(robot2532, True, None) | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "auth_user" SET "username" = robot2532, "first_name" = Robot2532, "last_name" = Test, "email" = robot+test+2532@edx.org, "password" = sha1$KPRLsQ6qVL6Y$df2df3bc2aa32218f78b0913649ee9ae78ee756c, "is_staff" = False, "is_active" = True, "is_superuser" = False, "last_login" = 2012-01-01 00:00:00, "date_joined" = 2011-01-01 00:00:00 WHERE "auth_user"."id" = 1 ; args=(u'robot2532', u'Robot2532', 'Test', u'robot+test+2532@edx.org', 'sha1$KPRLsQ6qVL6Y$df2df3bc2aa32218f78b0913649ee9ae78ee756c', False, True, False, u'2012-01-01 00:00:00', u'2011-01-01 00:00:00', 1) | |
| factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserProfileFactory(extra={'user': <User: robot2532>}) | |
| factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserProfileFactory(name=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x6f09750>>, mailing_address=None, level_of_education=None, user=<User: robot2532>, gender=u'm', goals=u'World domination') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <built-in method format of unicode object at 0x67ae1b0> on <LazyStub for student.tests.factories.UserProfileFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserProfileFactory(name=u'Robot2532 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: robot2532>) | |
| factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserProfileFactory(name=u'Robot2532 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: robot2532>) | |
| django.db.backends: DEBUG: (0.000) SELECT "auth_userprofile"."id", "auth_userprofile"."user_id", "auth_userprofile"."name", "auth_userprofile"."meta", "auth_userprofile"."courseware", "auth_userprofile"."language", "auth_userprofile"."location", "auth_userprofile"."year_of_birth", "auth_userprofile"."gender", "auth_userprofile"."level_of_education", "auth_userprofile"."mailing_address", "auth_userprofile"."city", "auth_userprofile"."country", "auth_userprofile"."goals", "auth_userprofile"."allow_certificate", "auth_userprofile"."title", "auth_userprofile"."avatar_url" FROM "auth_userprofile" WHERE "auth_userprofile"."user_id" = 1 ; args=(1,) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_userprofile" ("user_id", "name", "meta", "courseware", "language", "location", "year_of_birth", "gender", "level_of_education", "mailing_address", "city", "country", "goals", "allow_certificate", "title", "avatar_url") VALUES (1, Robot2532 Test, , course.xml, , , None, m, None, None, None, , World domination, True, None, None); args=[1, u'Robot2532 Test', '', u'course.xml', '', '', None, u'm', None, None, None, u'', u'World domination', True, None, None] | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "auth_user" SET "username" = robot2532, "first_name" = Robot2532, "last_name" = Test, "email" = robot+test+2532@edx.org, "password" = sha1$KPRLsQ6qVL6Y$df2df3bc2aa32218f78b0913649ee9ae78ee756c, "is_staff" = False, "is_active" = True, "is_superuser" = False, "last_login" = 2012-01-01 00:00:00, "date_joined" = 2011-01-01 00:00:00 WHERE "auth_user"."id" = 1 ; args=(u'robot2532', u'Robot2532', 'Test', u'robot+test+2532@edx.org', 'sha1$KPRLsQ6qVL6Y$df2df3bc2aa32218f78b0913649ee9ae78ee756c', False, True, False, u'2012-01-01 00:00:00', u'2011-01-01 00:00:00', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = USERTEST/999/USERTEST1 AND "django_comment_client_role"."name" = Moderator ); args=(u'USERTEST/999/USERTEST1', 'Moderator') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "django_comment_client_role" ("name", "course_id") VALUES (Moderator, USERTEST/999/USERTEST1); args=['Moderator', u'USERTEST/999/USERTEST1'] | |
| django.db.backends: DEBUG: (0.000) SELECT "student_userstanding"."id", "student_userstanding"."user_id", "student_userstanding"."account_status", "student_userstanding"."changed_by_id", "student_userstanding"."standing_last_changed_at" FROM "student_userstanding" WHERE "student_userstanding"."user_id" IS NULL; args=() | |
| tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/api/server/users/1/courses", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/api/server/users/1/courses"}, "time": "2014-10-07T16:48:17.148099+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"{\\\"course_id\\\": \\\"USERTEST/999/USERTEST1\\\"}\": [\"\"]}, \"GET\": {}}", "agent": "", "page": null} | |
| django.db.backends: DEBUG: (0.000) SELECT "splash_splashconfig"."id", "splash_splashconfig"."change_date", "splash_splashconfig"."changed_by_id", "splash_splashconfig"."enabled", "splash_splashconfig"."cookie_name", "splash_splashconfig"."cookie_allowed_values", "splash_splashconfig"."unaffected_usernames", "splash_splashconfig"."unaffected_url_paths", "splash_splashconfig"."redirect_url" FROM "splash_splashconfig" ORDER BY "splash_splashconfig"."change_date" DESC LIMIT 1; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "dark_lang_darklangconfig"."id", "dark_lang_darklangconfig"."change_date", "dark_lang_darklangconfig"."changed_by_id", "dark_lang_darklangconfig"."enabled", "dark_lang_darklangconfig"."released_languages" FROM "dark_lang_darklangconfig" ORDER BY "dark_lang_darklangconfig"."change_date" DESC LIMIT 1; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "embargo_embargoedcourse"."id", "embargo_embargoedcourse"."course_id", "embargo_embargoedcourse"."embargoed" FROM "embargo_embargoedcourse" WHERE "embargo_embargoedcourse"."course_id" = ; args=('',) | |
| django.db.backends: DEBUG: (0.000) SELECT "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_superuser", "auth_user"."last_login", "auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."id" = 1 ; args=(1,) | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| django.db.backends: DEBUG: (0.000) SELECT "student_courseenrollment"."id", "student_courseenrollment"."user_id", "student_courseenrollment"."course_id", "student_courseenrollment"."created", "student_courseenrollment"."is_active", "student_courseenrollment"."mode" FROM "student_courseenrollment" WHERE ("student_courseenrollment"."course_id" = USERTEST/999/USERTEST1 AND "student_courseenrollment"."user_id" = 1 ); args=(u'USERTEST/999/USERTEST1', 1) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "student_courseenrollment" ("user_id", "course_id", "created", "is_active", "mode") VALUES (1, USERTEST/999/USERTEST1, 2014-10-07 16:48:17.157457, True, honor); args=[1, u'USERTEST/999/USERTEST1', u'2014-10-07 16:48:17.157457', True, u'honor'] | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = USERTEST/999/USERTEST1 AND "django_comment_client_role"."name" = Student ); args=(u'USERTEST/999/USERTEST1', 'Student') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "django_comment_client_role" ("name", "course_id") VALUES (Student, USERTEST/999/USERTEST1); args=['Student', u'USERTEST/999/USERTEST1'] | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role_users"."role_id" FROM "django_comment_client_role_users" WHERE ("django_comment_client_role_users"."role_id" IN (2) AND "django_comment_client_role_users"."user_id" = 1 ); args=(2, 1) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "django_comment_client_role_users" ("role_id", "user_id") SELECT 2 AS "role_id", 1 AS "user_id"; args=(2, 1) | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "student_courseenrollment" WHERE "student_courseenrollment"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "student_courseenrollment" SET "user_id" = 1, "course_id" = USERTEST/999/USERTEST1, "created" = 2014-10-07 16:48:17.157457, "is_active" = False, "mode" = honor WHERE "student_courseenrollment"."id" = 1 ; args=(1, u'USERTEST/999/USERTEST1', u'2014-10-07 16:48:17.157457', False, 'honor', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = USERTEST/999/USERTEST1 AND "django_comment_client_role"."name" = Student ); args=(u'USERTEST/999/USERTEST1', 'Student') | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role_users"."role_id" FROM "django_comment_client_role_users" WHERE ("django_comment_client_role_users"."role_id" IN (2) AND "django_comment_client_role_users"."user_id" = 1 ); args=(2, 1) | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "student_courseenrollment" WHERE "student_courseenrollment"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "student_courseenrollment" SET "user_id" = 1, "course_id" = USERTEST/999/USERTEST1, "created" = 2014-10-07 16:48:17.157457, "is_active" = True, "mode" = honor WHERE "student_courseenrollment"."id" = 1 ; args=(1, u'USERTEST/999/USERTEST1', u'2014-10-07 16:48:17.157457', True, 'honor', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = USERTEST/999/USERTEST1 AND "django_comment_client_role"."name" = Student ); args=(u'USERTEST/999/USERTEST1', 'Student') | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role_users"."role_id" FROM "django_comment_client_role_users" WHERE ("django_comment_client_role_users"."role_id" IN (2) AND "django_comment_client_role_users"."user_id" = 1 ); args=(2, 1) | |
| tracking: INFO: {"username": "", "event_source": "server", "name": "edx.course.enrollment.activated", "time": "2014-10-07T16:48:17.167893+00:00", "agent": "", "page": null, "host": "testserver", "session": "", "context": {"user_id": "", "org_id": "USERTEST", "course_id": "USERTEST/999/USERTEST1", "path": "/api/server/users/1/courses"}, "ip": "127.0.0.1", "event": {"course_id": "USERTEST/999/USERTEST1", "user_id": 1, "mode": "honor"}, "event_type": "edx.course.enrollment.activated"} | |
| root: ERROR: Uncaught exception from <class 'django.test.client.ClientHandler'> | |
| Traceback (most recent call last): | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response | |
| response = callback(request, *callback_args, **callback_kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/compat.py", line 120, in view | |
| return self.dispatch(request, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view | |
| return view_func(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 326, in dispatch | |
| response = self.handle_exception(exc) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 323, in dispatch | |
| response = handler(request, *args, **kwargs) | |
| File "/edx/app/edxapp/edx-platform/lms/djangoapps/api_manager/users/views.py", line 728, in post | |
| default_cohort = get_cohort_by_name(course_id, CourseUserGroup.default_cohort_name) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/course_groups/cohorts.py", line 202, in get_cohort_by_name | |
| name=name | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py", line 131, in get | |
| return self.get_query_set().get(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 358, in get | |
| clone = self.filter(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 624, in filter | |
| return self._filter_or_exclude(False, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 642, in _filter_or_exclude | |
| clone.query.add_q(Q(*args, **kwargs)) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1250, in add_q | |
| can_reuse=used_aliases, force_having=force_having) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1185, in add_filter | |
| connector) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 69, in add | |
| value = obj.prepare(lookup_type, value) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 320, in prepare | |
| return self.field.get_prep_lookup(lookup_type, value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 103, in get_prep_lookup | |
| _strip_value(value, lookup) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 310, in get_prep_lookup | |
| return self.get_prep_value(value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 110, in get_prep_value | |
| assert isinstance(value, CourseKey) | |
| AssertionError | |
| django.request: ERROR: Internal Server Error: /api/server/users/1/courses | |
| Traceback (most recent call last): | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response | |
| response = callback(request, *callback_args, **callback_kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/compat.py", line 120, in view | |
| return self.dispatch(request, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view | |
| return view_func(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 326, in dispatch | |
| response = self.handle_exception(exc) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 323, in dispatch | |
| response = handler(request, *args, **kwargs) | |
| File "/edx/app/edxapp/edx-platform/lms/djangoapps/api_manager/users/views.py", line 728, in post | |
| default_cohort = get_cohort_by_name(course_id, CourseUserGroup.default_cohort_name) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/course_groups/cohorts.py", line 202, in get_cohort_by_name | |
| name=name | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py", line 131, in get | |
| return self.get_query_set().get(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 358, in get | |
| clone = self.filter(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 624, in filter | |
| return self._filter_or_exclude(False, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 642, in _filter_or_exclude | |
| clone.query.add_q(Q(*args, **kwargs)) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1250, in add_q | |
| can_reuse=used_aliases, force_having=force_having) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1185, in add_filter | |
| connector) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 69, in add | |
| value = obj.prepare(lookup_type, value) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 320, in prepare | |
| return self.field.get_prep_lookup(lookup_type, value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 103, in get_prep_lookup | |
| _strip_value(value, lookup) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 310, in get_prep_lookup | |
| return self.get_prep_value(value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 110, in get_prep_value | |
| assert isinstance(value, CourseKey) | |
| AssertionError | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| --------------------- >> end captured logging << --------------------- | |
| ----------------------------------------------------------------------------- | |
| 6) FAIL: test_user_courses_list_get (api_manager.users.tests.UsersApiTests) | |
| Traceback (most recent call last): | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/mock.py line 1618 in _inner | |
| return f(*args, **kw) | |
| lms/djangoapps/api_manager/users/tests.py line 780 in test_user_courses_list_get | |
| response = self.do_post(test_uri, data) | |
| lms/djangoapps/api_manager/users/tests.py line 137 in do_post | |
| uri, headers=headers, content_type='application/json', data=json_data) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/test/client.py line 449 in post | |
| response = super(Client, self).post(path, data=data, content_type=content_type, **extra) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/test/client.py line 262 in post | |
| return self.request(**r) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py line 111 in get_response | |
| response = callback(request, *callback_args, **callback_kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/compat.py line 120 in view | |
| return self.dispatch(request, *args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py line 77 in wrapped_view | |
| return view_func(*args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py line 326 in dispatch | |
| response = self.handle_exception(exc) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py line 323 in dispatch | |
| response = handler(request, *args, **kwargs) | |
| lms/djangoapps/api_manager/users/views.py line 728 in post | |
| default_cohort = get_cohort_by_name(course_id, CourseUserGroup.default_cohort_name) | |
| common/djangoapps/course_groups/cohorts.py line 202 in get_cohort_by_name | |
| name=name | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py line 131 in get | |
| return self.get_query_set().get(*args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py line 358 in get | |
| clone = self.filter(*args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py line 624 in filter | |
| return self._filter_or_exclude(False, *args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py line 642 in _filter_or_exclude | |
| clone.query.add_q(Q(*args, **kwargs)) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py line 1250 in add_q | |
| can_reuse=used_aliases, force_having=force_having) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py line 1185 in add_filter | |
| connector) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py line 69 in add | |
| value = obj.prepare(lookup_type, value) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py line 320 in prepare | |
| return self.field.get_prep_lookup(lookup_type, value) | |
| common/djangoapps/xmodule_django/models.py line 103 in get_prep_lookup | |
| _strip_value(value, lookup) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py line 310 in get_prep_lookup | |
| return self.get_prep_value(value) | |
| common/djangoapps/xmodule_django/models.py line 110 in get_prep_value | |
| assert isinstance(value, CourseKey) | |
| AssertionError: | |
| -------------------- >> begin captured logging << -------------------- | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'start': datetime.datetime(2014, 6, 16, 14, 30), 'run': 'USERTEST1', 'end': datetime.datetime(2015, 1, 16, 14, 30), 'display_name': 'TEST COURSE', 'org': 'USERTEST'}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(end=datetime.datetime(2015, 1, 16, 14, 30), modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='USERTEST', run='USERTEST1', display_name='TEST COURSE') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(run='USERTEST1', modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='USERTEST', end=datetime.datetime(2015, 1, 16, 14, 30), display_name='TEST COURSE') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(run='USERTEST1', modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='USERTEST', end=datetime.datetime(2015, 1, 16, 14, 30), display_name='TEST COURSE') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'videosequence', 'display_name': 'View_Sequence', 'data': '<html>1bea8bcd-e654-4b2b-898d-d678724fe299</html>', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), 'due': datetime.datetime(2016, 5, 16, 14, 30)}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, due=datetime.datetime(2016, 5, 16, 14, 30), location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>1bea8bcd-e654-4b2b-898d-d678724fe299</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'videosequence', 'View_Sequence'), data='<html>1bea8bcd-e654-4b2b-898d-d678724fe299</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'videosequence', 'View_Sequence'), data='<html>1bea8bcd-e654-4b2b-898d-d678724fe299</html>') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'org': 'TESTORG2', 'run': 'USERTEST2', 'display_name': 'TEST COURSE2'}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, display_name='TEST COURSE2', run='USERTEST2', number='999', org='TESTORG2') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, run='USERTEST2', display_name='TEST COURSE2', number='999', org='TESTORG2') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, run='USERTEST2', display_name='TEST COURSE2', number='999', org='TESTORG2') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'videosequence', 'display_name': 'View_Sequence2', 'data': '<html>1bea8bcd-e654-4b2b-898d-d678724fe299</html>', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), 'due': datetime.datetime(2016, 5, 16, 14, 30)}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, due=datetime.datetime(2016, 5, 16, 14, 30), location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>1bea8bcd-e654-4b2b-898d-d678724fe299</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'videosequence', 'View_Sequence2'), data='<html>1bea8bcd-e654-4b2b-898d-d678724fe299</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'videosequence', 'View_Sequence2'), data='<html>1bea8bcd-e654-4b2b-898d-d678724fe299</html>') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserFactory(extra={}) | |
| factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserFactory(username=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x6f097d0>>, first_name=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x6f09910>>, last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x6f09810>>, date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>)) | |
| factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x68a37e0> for seq=2535 | |
| factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x68a3b10> for seq=2535 | |
| factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x68a3750> for seq=2535 | |
| factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserFactory(username=u'robot2535', first_name=u'Robot2535', last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email=u'robot+test+2535@edx.org', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>)) | |
| factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserFactory(username=u'robot2535', first_name=u'Robot2535', last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email=u'robot+test+2535@edx.org', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>)) | |
| django.db.backends: DEBUG: (0.000) SELECT "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_superuser", "auth_user"."last_login", "auth_user"."date_joined" FROM "auth_user" WHERE ("auth_user"."username" = robot2535 AND "auth_user"."email" = robot+test+2535@edx.org ); args=(u'robot2535', u'robot+test+2535@edx.org') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_user" ("username", "first_name", "last_name", "email", "password", "is_staff", "is_active", "is_superuser", "last_login", "date_joined") VALUES (robot2535, Robot2535, Test, robot+test+2535@edx.org, , False, True, False, 2012-01-01 00:00:00, 2011-01-01 00:00:00); args=[u'robot2535', u'Robot2535', 'Test', u'robot+test+2535@edx.org', '', False, True, False, u'2012-01-01 00:00:00', u'2011-01-01 00:00:00'] | |
| factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.groups(robot2535, True, None) | |
| factory.generate: DEBUG: PostGenerationMethodCall: Calling <User: robot2535>.set_password(test) | |
| factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.profile(robot2535, True, None) | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "auth_user" SET "username" = robot2535, "first_name" = Robot2535, "last_name" = Test, "email" = robot+test+2535@edx.org, "password" = sha1$laAYX3OT6zwW$7d2b0ad18dc27f86cbee16f24de5a63f318bc1c8, "is_staff" = False, "is_active" = True, "is_superuser" = False, "last_login" = 2012-01-01 00:00:00, "date_joined" = 2011-01-01 00:00:00 WHERE "auth_user"."id" = 1 ; args=(u'robot2535', u'Robot2535', 'Test', u'robot+test+2535@edx.org', 'sha1$laAYX3OT6zwW$7d2b0ad18dc27f86cbee16f24de5a63f318bc1c8', False, True, False, u'2012-01-01 00:00:00', u'2011-01-01 00:00:00', 1) | |
| factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserProfileFactory(extra={'user': <User: robot2535>}) | |
| factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserProfileFactory(name=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x6f09750>>, mailing_address=None, level_of_education=None, user=<User: robot2535>, gender=u'm', goals=u'World domination') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <built-in method format of unicode object at 0x67ae1b0> on <LazyStub for student.tests.factories.UserProfileFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserProfileFactory(name=u'Robot2535 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: robot2535>) | |
| factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserProfileFactory(name=u'Robot2535 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: robot2535>) | |
| django.db.backends: DEBUG: (0.000) SELECT "auth_userprofile"."id", "auth_userprofile"."user_id", "auth_userprofile"."name", "auth_userprofile"."meta", "auth_userprofile"."courseware", "auth_userprofile"."language", "auth_userprofile"."location", "auth_userprofile"."year_of_birth", "auth_userprofile"."gender", "auth_userprofile"."level_of_education", "auth_userprofile"."mailing_address", "auth_userprofile"."city", "auth_userprofile"."country", "auth_userprofile"."goals", "auth_userprofile"."allow_certificate", "auth_userprofile"."title", "auth_userprofile"."avatar_url" FROM "auth_userprofile" WHERE "auth_userprofile"."user_id" = 1 ; args=(1,) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_userprofile" ("user_id", "name", "meta", "courseware", "language", "location", "year_of_birth", "gender", "level_of_education", "mailing_address", "city", "country", "goals", "allow_certificate", "title", "avatar_url") VALUES (1, Robot2535 Test, , course.xml, , , None, m, None, None, None, , World domination, True, None, None); args=[1, u'Robot2535 Test', '', u'course.xml', '', '', None, u'm', None, None, None, u'', u'World domination', True, None, None] | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "auth_user" SET "username" = robot2535, "first_name" = Robot2535, "last_name" = Test, "email" = robot+test+2535@edx.org, "password" = sha1$laAYX3OT6zwW$7d2b0ad18dc27f86cbee16f24de5a63f318bc1c8, "is_staff" = False, "is_active" = True, "is_superuser" = False, "last_login" = 2012-01-01 00:00:00, "date_joined" = 2011-01-01 00:00:00 WHERE "auth_user"."id" = 1 ; args=(u'robot2535', u'Robot2535', 'Test', u'robot+test+2535@edx.org', 'sha1$laAYX3OT6zwW$7d2b0ad18dc27f86cbee16f24de5a63f318bc1c8', False, True, False, u'2012-01-01 00:00:00', u'2011-01-01 00:00:00', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = USERTEST/999/USERTEST1 AND "django_comment_client_role"."name" = Moderator ); args=(u'USERTEST/999/USERTEST1', 'Moderator') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "django_comment_client_role" ("name", "course_id") VALUES (Moderator, USERTEST/999/USERTEST1); args=['Moderator', u'USERTEST/999/USERTEST1'] | |
| django.db.backends: DEBUG: (0.000) SELECT "student_userstanding"."id", "student_userstanding"."user_id", "student_userstanding"."account_status", "student_userstanding"."changed_by_id", "student_userstanding"."standing_last_changed_at" FROM "student_userstanding" WHERE "student_userstanding"."user_id" IS NULL; args=() | |
| tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/api/server/users", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/api/server/users"}, "time": "2014-10-07T16:48:19.043607+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"{\\\"username\\\": \\\"e21bbd7e-f369-417f-abf7-9f64b3f94daf92\\\", \\\"first_name\\\": \\\"10ba2f5b-c6a8-4210-86d0-88fa62c4a58a\\\", \\\"password\\\": \\\"Test.Me64!\\\", \\\"email\\\": \\\"a9946b32-8e13-4585-9d2e-92da915ef3a8@test.org\\\", \\\"last_name\\\": \\\"e12d37a2-8fd6-4e34-ace0-a0f6105bb381\\\"}\": [\"\"]}, \"GET\": {}}", "agent": "", "page": null} | |
| django.db.backends: DEBUG: (0.000) SELECT "splash_splashconfig"."id", "splash_splashconfig"."change_date", "splash_splashconfig"."changed_by_id", "splash_splashconfig"."enabled", "splash_splashconfig"."cookie_name", "splash_splashconfig"."cookie_allowed_values", "splash_splashconfig"."unaffected_usernames", "splash_splashconfig"."unaffected_url_paths", "splash_splashconfig"."redirect_url" FROM "splash_splashconfig" ORDER BY "splash_splashconfig"."change_date" DESC LIMIT 1; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "dark_lang_darklangconfig"."id", "dark_lang_darklangconfig"."change_date", "dark_lang_darklangconfig"."changed_by_id", "dark_lang_darklangconfig"."enabled", "dark_lang_darklangconfig"."released_languages" FROM "dark_lang_darklangconfig" ORDER BY "dark_lang_darklangconfig"."change_date" DESC LIMIT 1; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "embargo_embargoedcourse"."id", "embargo_embargoedcourse"."course_id", "embargo_embargoedcourse"."embargoed" FROM "embargo_embargoedcourse" WHERE "embargo_embargoedcourse"."course_id" = ; args=('',) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_user" ("username", "first_name", "last_name", "email", "password", "is_staff", "is_active", "is_superuser", "last_login", "date_joined") VALUES (e21bbd7e-f369-417f-abf7-9f64b3f94daf92, , , a9946b32-8e13-4585-9d2e-92da915ef3a8@test.org, , False, True, False, 2014-10-07 16:48:19.048104, 2014-10-07 16:48:19.048176); args=[u'e21bbd7e-f369-417f-abf7-9f64b3f94daf92', '', '', u'a9946b32-8e13-4585-9d2e-92da915ef3a8@test.org', '', False, True, False, u'2014-10-07 16:48:19.048104', u'2014-10-07 16:48:19.048176'] | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."id" = 2 LIMIT 1; args=(2,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "auth_user" SET "username" = e21bbd7e-f369-417f-abf7-9f64b3f94daf92, "first_name" = 10ba2f5b-c6a8-4210-86d0-88fa62c4a58a, "last_name" = e12d37a2-8fd6-4e34-ace0-a0f6105bb381, "email" = a9946b32-8e13-4585-9d2e-92da915ef3a8@test.org, "password" = sha1$jVXQB4WHBa4O$6dc4be4146c4921e11a20f4f4de6f2640a783084, "is_staff" = False, "is_active" = True, "is_superuser" = False, "last_login" = 2014-10-07 16:48:19.048104, "date_joined" = 2014-10-07 16:48:19.048176 WHERE "auth_user"."id" = 2 ; args=(u'e21bbd7e-f369-417f-abf7-9f64b3f94daf92', u'10ba2f5b-c6a8-4210-86d0-88fa62c4a58a', u'e12d37a2-8fd6-4e34-ace0-a0f6105bb381', u'a9946b32-8e13-4585-9d2e-92da915ef3a8@test.org', 'sha1$jVXQB4WHBa4O$6dc4be4146c4921e11a20f4f4de6f2640a783084', False, True, False, u'2014-10-07 16:48:19.048104', u'2014-10-07 16:48:19.048176', 2) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_userprofile" ("user_id", "name", "meta", "courseware", "language", "location", "year_of_birth", "gender", "level_of_education", "mailing_address", "city", "country", "goals", "allow_certificate", "title", "avatar_url") VALUES (2, 10ba2f5b-c6a8-4210-86d0-88fa62c4a58a e12d37a2-8fd6-4e34-ace0-a0f6105bb381, , course.xml, , , None, , , None, , , None, True, , None); args=[2, '10ba2f5b-c6a8-4210-86d0-88fa62c4a58a e12d37a2-8fd6-4e34-ace0-a0f6105bb381', '', u'course.xml', '', '', None, '', '', None, '', u'', None, True, '', None] | |
| django.db.backends: DEBUG: (0.000) SELECT "user_api_userpreference"."id", "user_api_userpreference"."user_id", "user_api_userpreference"."key", "user_api_userpreference"."value" FROM "user_api_userpreference" WHERE ("user_api_userpreference"."user_id" = 2 AND "user_api_userpreference"."key" = pref-lang ); args=(2, 'pref-lang') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "user_api_userpreference" ("user_id", "key", "value") VALUES (2, pref-lang, ); args=[2, 'pref-lang', ''] | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "user_api_userpreference" WHERE "user_api_userpreference"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "user_api_userpreference" SET "user_id" = 2, "key" = pref-lang, "value" = en WHERE "user_api_userpreference"."id" = 1 ; args=(2, 'pref-lang', 'en', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "user_api_userpreference"."id", "user_api_userpreference"."user_id", "user_api_userpreference"."key", "user_api_userpreference"."value" FROM "user_api_userpreference" WHERE ("user_api_userpreference"."user_id" = 2 AND "user_api_userpreference"."key" = notification_pref ); args=(2, 'notification_pref') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "user_api_userpreference" ("user_id", "key", "value") VALUES (2, notification_pref, qxYZ3MOFX1KW2rCr665ncd7DOI4YoFLT0qH0cHbSc63-4L5ztb-b-GoEMe5qK2SbJoAzrCXnpAB5ib0EmpaYeQ==); args=[2, 'notification_pref', 'qxYZ3MOFX1KW2rCr665ncd7DOI4YoFLT0qH0cHbSc63-4L5ztb-b-GoEMe5qK2SbJoAzrCXnpAB5ib0EmpaYeQ=='] | |
| audit: INFO: API::New account created with user-id - 2 | |
| django.db.backends: DEBUG: (0.000) SELECT "student_userstanding"."id", "student_userstanding"."user_id", "student_userstanding"."account_status", "student_userstanding"."changed_by_id", "student_userstanding"."standing_last_changed_at" FROM "student_userstanding" WHERE "student_userstanding"."user_id" IS NULL; args=() | |
| tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/api/server/users/2/courses", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/api/server/users/2/courses"}, "time": "2014-10-07T16:48:19.057449+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"{\\\"course_id\\\": \\\"USERTEST/999/USERTEST1\\\"}\": [\"\"]}, \"GET\": {}}", "agent": "", "page": null} | |
| django.db.backends: DEBUG: (0.000) SELECT "embargo_embargoedcourse"."id", "embargo_embargoedcourse"."course_id", "embargo_embargoedcourse"."embargoed" FROM "embargo_embargoedcourse" WHERE "embargo_embargoedcourse"."course_id" = ; args=('',) | |
| django.db.backends: DEBUG: (0.000) SELECT "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_superuser", "auth_user"."last_login", "auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."id" = 2 ; args=(2,) | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| django.db.backends: DEBUG: (0.000) SELECT "student_courseenrollment"."id", "student_courseenrollment"."user_id", "student_courseenrollment"."course_id", "student_courseenrollment"."created", "student_courseenrollment"."is_active", "student_courseenrollment"."mode" FROM "student_courseenrollment" WHERE ("student_courseenrollment"."course_id" = USERTEST/999/USERTEST1 AND "student_courseenrollment"."user_id" = 2 ); args=(u'USERTEST/999/USERTEST1', 2) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "student_courseenrollment" ("user_id", "course_id", "created", "is_active", "mode") VALUES (2, USERTEST/999/USERTEST1, 2014-10-07 16:48:19.067713, True, honor); args=[2, u'USERTEST/999/USERTEST1', u'2014-10-07 16:48:19.067713', True, u'honor'] | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = USERTEST/999/USERTEST1 AND "django_comment_client_role"."name" = Student ); args=(u'USERTEST/999/USERTEST1', 'Student') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "django_comment_client_role" ("name", "course_id") VALUES (Student, USERTEST/999/USERTEST1); args=['Student', u'USERTEST/999/USERTEST1'] | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role_users"."role_id" FROM "django_comment_client_role_users" WHERE ("django_comment_client_role_users"."role_id" IN (2) AND "django_comment_client_role_users"."user_id" = 2 ); args=(2, 2) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "django_comment_client_role_users" ("role_id", "user_id") SELECT 2 AS "role_id", 2 AS "user_id"; args=(2, 2) | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "student_courseenrollment" WHERE "student_courseenrollment"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "student_courseenrollment" SET "user_id" = 2, "course_id" = USERTEST/999/USERTEST1, "created" = 2014-10-07 16:48:19.067713, "is_active" = False, "mode" = honor WHERE "student_courseenrollment"."id" = 1 ; args=(2, u'USERTEST/999/USERTEST1', u'2014-10-07 16:48:19.067713', False, 'honor', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = USERTEST/999/USERTEST1 AND "django_comment_client_role"."name" = Student ); args=(u'USERTEST/999/USERTEST1', 'Student') | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role_users"."role_id" FROM "django_comment_client_role_users" WHERE ("django_comment_client_role_users"."role_id" IN (2) AND "django_comment_client_role_users"."user_id" = 2 ); args=(2, 2) | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "student_courseenrollment" WHERE "student_courseenrollment"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "student_courseenrollment" SET "user_id" = 2, "course_id" = USERTEST/999/USERTEST1, "created" = 2014-10-07 16:48:19.067713, "is_active" = True, "mode" = honor WHERE "student_courseenrollment"."id" = 1 ; args=(2, u'USERTEST/999/USERTEST1', u'2014-10-07 16:48:19.067713', True, 'honor', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = USERTEST/999/USERTEST1 AND "django_comment_client_role"."name" = Student ); args=(u'USERTEST/999/USERTEST1', 'Student') | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role_users"."role_id" FROM "django_comment_client_role_users" WHERE ("django_comment_client_role_users"."role_id" IN (2) AND "django_comment_client_role_users"."user_id" = 2 ); args=(2, 2) | |
| tracking: INFO: {"username": "", "event_source": "server", "name": "edx.course.enrollment.activated", "time": "2014-10-07T16:48:19.082601+00:00", "agent": "", "page": null, "host": "testserver", "session": "", "context": {"user_id": "", "org_id": "USERTEST", "course_id": "USERTEST/999/USERTEST1", "path": "/api/server/users/2/courses"}, "ip": "127.0.0.1", "event": {"course_id": "USERTEST/999/USERTEST1", "user_id": 2, "mode": "honor"}, "event_type": "edx.course.enrollment.activated"} | |
| root: ERROR: Uncaught exception from <class 'django.test.client.ClientHandler'> | |
| Traceback (most recent call last): | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response | |
| response = callback(request, *callback_args, **callback_kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/compat.py", line 120, in view | |
| return self.dispatch(request, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view | |
| return view_func(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 326, in dispatch | |
| response = self.handle_exception(exc) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 323, in dispatch | |
| response = handler(request, *args, **kwargs) | |
| File "/edx/app/edxapp/edx-platform/lms/djangoapps/api_manager/users/views.py", line 728, in post | |
| default_cohort = get_cohort_by_name(course_id, CourseUserGroup.default_cohort_name) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/course_groups/cohorts.py", line 202, in get_cohort_by_name | |
| name=name | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py", line 131, in get | |
| return self.get_query_set().get(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 358, in get | |
| clone = self.filter(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 624, in filter | |
| return self._filter_or_exclude(False, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 642, in _filter_or_exclude | |
| clone.query.add_q(Q(*args, **kwargs)) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1250, in add_q | |
| can_reuse=used_aliases, force_having=force_having) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1185, in add_filter | |
| connector) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 69, in add | |
| value = obj.prepare(lookup_type, value) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 320, in prepare | |
| return self.field.get_prep_lookup(lookup_type, value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 103, in get_prep_lookup | |
| _strip_value(value, lookup) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 310, in get_prep_lookup | |
| return self.get_prep_value(value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 110, in get_prep_value | |
| assert isinstance(value, CourseKey) | |
| AssertionError | |
| django.request: ERROR: Internal Server Error: /api/server/users/2/courses | |
| Traceback (most recent call last): | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response | |
| response = callback(request, *callback_args, **callback_kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/compat.py", line 120, in view | |
| return self.dispatch(request, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view | |
| return view_func(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 326, in dispatch | |
| response = self.handle_exception(exc) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 323, in dispatch | |
| response = handler(request, *args, **kwargs) | |
| File "/edx/app/edxapp/edx-platform/lms/djangoapps/api_manager/users/views.py", line 728, in post | |
| default_cohort = get_cohort_by_name(course_id, CourseUserGroup.default_cohort_name) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/course_groups/cohorts.py", line 202, in get_cohort_by_name | |
| name=name | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py", line 131, in get | |
| return self.get_query_set().get(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 358, in get | |
| clone = self.filter(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 624, in filter | |
| return self._filter_or_exclude(False, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 642, in _filter_or_exclude | |
| clone.query.add_q(Q(*args, **kwargs)) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1250, in add_q | |
| can_reuse=used_aliases, force_having=force_having) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1185, in add_filter | |
| connector) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 69, in add | |
| value = obj.prepare(lookup_type, value) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 320, in prepare | |
| return self.field.get_prep_lookup(lookup_type, value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 103, in get_prep_lookup | |
| _strip_value(value, lookup) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 310, in get_prep_lookup | |
| return self.get_prep_value(value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 110, in get_prep_value | |
| assert isinstance(value, CourseKey) | |
| AssertionError | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| --------------------- >> end captured logging << --------------------- | |
| ----------------------------------------------------------------------------- | |
| 7) FAIL: test_user_courses_list_post (api_manager.users.tests.UsersApiTests) | |
| Traceback (most recent call last): | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/mock.py line 1618 in _inner | |
| return f(*args, **kw) | |
| lms/djangoapps/api_manager/users/tests.py line 739 in test_user_courses_list_post | |
| response = self.do_post(test_uri, data) | |
| lms/djangoapps/api_manager/users/tests.py line 137 in do_post | |
| uri, headers=headers, content_type='application/json', data=json_data) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/test/client.py line 449 in post | |
| response = super(Client, self).post(path, data=data, content_type=content_type, **extra) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/test/client.py line 262 in post | |
| return self.request(**r) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py line 111 in get_response | |
| response = callback(request, *callback_args, **callback_kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/compat.py line 120 in view | |
| return self.dispatch(request, *args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py line 77 in wrapped_view | |
| return view_func(*args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py line 326 in dispatch | |
| response = self.handle_exception(exc) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py line 323 in dispatch | |
| response = handler(request, *args, **kwargs) | |
| lms/djangoapps/api_manager/users/views.py line 728 in post | |
| default_cohort = get_cohort_by_name(course_id, CourseUserGroup.default_cohort_name) | |
| common/djangoapps/course_groups/cohorts.py line 202 in get_cohort_by_name | |
| name=name | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py line 131 in get | |
| return self.get_query_set().get(*args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py line 358 in get | |
| clone = self.filter(*args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py line 624 in filter | |
| return self._filter_or_exclude(False, *args, **kwargs) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py line 642 in _filter_or_exclude | |
| clone.query.add_q(Q(*args, **kwargs)) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py line 1250 in add_q | |
| can_reuse=used_aliases, force_having=force_having) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py line 1185 in add_filter | |
| connector) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py line 69 in add | |
| value = obj.prepare(lookup_type, value) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py line 320 in prepare | |
| return self.field.get_prep_lookup(lookup_type, value) | |
| common/djangoapps/xmodule_django/models.py line 103 in get_prep_lookup | |
| _strip_value(value, lookup) | |
| /edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py line 310 in get_prep_lookup | |
| return self.get_prep_value(value) | |
| common/djangoapps/xmodule_django/models.py line 110 in get_prep_value | |
| assert isinstance(value, CourseKey) | |
| AssertionError: | |
| -------------------- >> begin captured logging << -------------------- | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'start': datetime.datetime(2014, 6, 16, 14, 30), 'run': 'USERTEST1', 'end': datetime.datetime(2015, 1, 16, 14, 30), 'display_name': 'TEST COURSE', 'org': 'USERTEST'}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(end=datetime.datetime(2015, 1, 16, 14, 30), modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='USERTEST', run='USERTEST1', display_name='TEST COURSE') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(run='USERTEST1', modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='USERTEST', end=datetime.datetime(2015, 1, 16, 14, 30), display_name='TEST COURSE') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(run='USERTEST1', modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, number='999', start=datetime.datetime(2014, 6, 16, 14, 30), org='USERTEST', end=datetime.datetime(2015, 1, 16, 14, 30), display_name='TEST COURSE') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'videosequence', 'display_name': 'View_Sequence', 'data': '<html>b6d9d1c4-2162-4450-8157-711af4fe63f1</html>', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), 'due': datetime.datetime(2016, 5, 16, 14, 30)}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, due=datetime.datetime(2016, 5, 16, 14, 30), location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>b6d9d1c4-2162-4450-8157-711af4fe63f1</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'videosequence', 'View_Sequence'), data='<html>b6d9d1c4-2162-4450-8157-711af4fe63f1</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'course', 'USERTEST1'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('USERTEST', '999', 'USERTEST1', None, None), 'videosequence', 'View_Sequence'), data='<html>b6d9d1c4-2162-4450-8157-711af4fe63f1</html>') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.CourseFactory(extra={'org': 'TESTORG2', 'run': 'USERTEST2', 'display_name': 'TEST COURSE2'}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.CourseFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.CourseFactory(modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, display_name='TEST COURSE2', run='USERTEST2', number='999', org='TESTORG2') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.CourseFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, run='USERTEST2', display_name='TEST COURSE2', number='999', org='TESTORG2') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.CourseFactory(modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, run='USERTEST2', display_name='TEST COURSE2', number='999', org='TESTORG2') | |
| factory.generate: DEBUG: BaseFactory: Preparing xmodule.modulestore.tests.factories.ItemFactory(extra={'category': 'videosequence', 'display_name': 'View_Sequence2', 'data': '<html>b6d9d1c4-2162-4450-8157-711af4fe63f1</html>', 'parent_location': BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), 'due': datetime.datetime(2016, 5, 16, 14, 30)}) | |
| factory.generate: DEBUG: <class 'xmodule.modulestore.tests.factories.ItemFactory'>: reusing sequence from <class 'xmodule.modulestore.tests.factories.XModuleFactory'> | |
| factory.containers: DEBUG: LazyStub: Computing values for xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), parent=None, modulestore=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669610>>, due=datetime.datetime(2016, 5, 16, 14, 30), location=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x7669690>>, data='<html>b6d9d1c4-2162-4450-8157-711af4fe63f1</html>') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function modulestore at 0x7665d70> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <function location at 0x7665ed8> on <LazyStub for xmodule.modulestore.tests.factories.ItemFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'videosequence', 'View_Sequence2'), data='<html>b6d9d1c4-2162-4450-8157-711af4fe63f1</html>') | |
| factory.generate: DEBUG: BaseFactory: Generating xmodule.modulestore.tests.factories.ItemFactory(category='videosequence', display_name='View_Sequence2', parent_location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'course', 'USERTEST2'), parent=None, modulestore=<xmodule.modulestore.mixed.MixedModuleStore object at 0x981f350>, due=datetime.datetime(2016, 5, 16, 14, 30), location=BlockUsageLocator(SlashSeparatedCourseKey('TESTORG2', '999', 'USERTEST2', None, None), 'videosequence', 'View_Sequence2'), data='<html>b6d9d1c4-2162-4450-8157-711af4fe63f1</html>') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| root: WARNING: Deprecated. JSONifiable fields should derive from JSONField | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserFactory(extra={}) | |
| factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserFactory(username=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x6f097d0>>, first_name=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x6f09910>>, last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email=<OrderedDeclarationWrapper for <factory.declarations.Sequence object at 0x6f09810>>, date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>)) | |
| factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x68a37e0> for seq=2537 | |
| factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x68a3b10> for seq=2537 | |
| factory.generate: DEBUG: Sequence: Computing next value of <built-in method format of unicode object at 0x68a3750> for seq=2537 | |
| factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserFactory(username=u'robot2537', first_name=u'Robot2537', last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email=u'robot+test+2537@edx.org', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>)) | |
| factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserFactory(username=u'robot2537', first_name=u'Robot2537', last_name='Test', is_active=True, is_superuser=False, is_staff=False, last_login=datetime.datetime(2012, 1, 1, 0, 0, tzinfo=<UTC>), email=u'robot+test+2537@edx.org', date_joined=datetime.datetime(2011, 1, 1, 0, 0, tzinfo=<UTC>)) | |
| django.db.backends: DEBUG: (0.000) SELECT "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_superuser", "auth_user"."last_login", "auth_user"."date_joined" FROM "auth_user" WHERE ("auth_user"."username" = robot2537 AND "auth_user"."email" = robot+test+2537@edx.org ); args=(u'robot2537', u'robot+test+2537@edx.org') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_user" ("username", "first_name", "last_name", "email", "password", "is_staff", "is_active", "is_superuser", "last_login", "date_joined") VALUES (robot2537, Robot2537, Test, robot+test+2537@edx.org, , False, True, False, 2012-01-01 00:00:00, 2011-01-01 00:00:00); args=[u'robot2537', u'Robot2537', 'Test', u'robot+test+2537@edx.org', '', False, True, False, u'2012-01-01 00:00:00', u'2011-01-01 00:00:00'] | |
| factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.groups(robot2537, True, None) | |
| factory.generate: DEBUG: PostGenerationMethodCall: Calling <User: robot2537>.set_password(test) | |
| factory.generate: DEBUG: PostGeneration: Calling student.tests.factories.profile(robot2537, True, None) | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "auth_user" SET "username" = robot2537, "first_name" = Robot2537, "last_name" = Test, "email" = robot+test+2537@edx.org, "password" = sha1$YyYndtqJS3Kh$026172f294e241d455f6480109639fd4653d98d2, "is_staff" = False, "is_active" = True, "is_superuser" = False, "last_login" = 2012-01-01 00:00:00, "date_joined" = 2011-01-01 00:00:00 WHERE "auth_user"."id" = 1 ; args=(u'robot2537', u'Robot2537', 'Test', u'robot+test+2537@edx.org', 'sha1$YyYndtqJS3Kh$026172f294e241d455f6480109639fd4653d98d2', False, True, False, u'2012-01-01 00:00:00', u'2011-01-01 00:00:00', 1) | |
| factory.generate: DEBUG: BaseFactory: Preparing student.tests.factories.UserProfileFactory(extra={'user': <User: robot2537>}) | |
| factory.containers: DEBUG: LazyStub: Computing values for student.tests.factories.UserProfileFactory(name=<OrderedDeclarationWrapper for <factory.declarations.LazyAttribute object at 0x6f09750>>, mailing_address=None, level_of_education=None, user=<User: robot2537>, gender=u'm', goals=u'World domination') | |
| factory.generate: DEBUG: LazyAttribute: Evaluating <built-in method format of unicode object at 0x67ae1b0> on <LazyStub for student.tests.factories.UserProfileFactory> | |
| factory.containers: DEBUG: LazyStub: Computed values, got student.tests.factories.UserProfileFactory(name=u'Robot2537 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: robot2537>) | |
| factory.generate: DEBUG: BaseFactory: Generating student.tests.factories.UserProfileFactory(name=u'Robot2537 Test', mailing_address=None, level_of_education=None, goals=u'World domination', gender=u'm', user=<User: robot2537>) | |
| django.db.backends: DEBUG: (0.000) SELECT "auth_userprofile"."id", "auth_userprofile"."user_id", "auth_userprofile"."name", "auth_userprofile"."meta", "auth_userprofile"."courseware", "auth_userprofile"."language", "auth_userprofile"."location", "auth_userprofile"."year_of_birth", "auth_userprofile"."gender", "auth_userprofile"."level_of_education", "auth_userprofile"."mailing_address", "auth_userprofile"."city", "auth_userprofile"."country", "auth_userprofile"."goals", "auth_userprofile"."allow_certificate", "auth_userprofile"."title", "auth_userprofile"."avatar_url" FROM "auth_userprofile" WHERE "auth_userprofile"."user_id" = 1 ; args=(1,) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_userprofile" ("user_id", "name", "meta", "courseware", "language", "location", "year_of_birth", "gender", "level_of_education", "mailing_address", "city", "country", "goals", "allow_certificate", "title", "avatar_url") VALUES (1, Robot2537 Test, , course.xml, , , None, m, None, None, None, , World domination, True, None, None); args=[1, u'Robot2537 Test', '', u'course.xml', '', '', None, u'm', None, None, None, u'', u'World domination', True, None, None] | |
| django.db.backends: DEBUG: (0.001) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "auth_user" SET "username" = robot2537, "first_name" = Robot2537, "last_name" = Test, "email" = robot+test+2537@edx.org, "password" = sha1$YyYndtqJS3Kh$026172f294e241d455f6480109639fd4653d98d2, "is_staff" = False, "is_active" = True, "is_superuser" = False, "last_login" = 2012-01-01 00:00:00, "date_joined" = 2011-01-01 00:00:00 WHERE "auth_user"."id" = 1 ; args=(u'robot2537', u'Robot2537', 'Test', u'robot+test+2537@edx.org', 'sha1$YyYndtqJS3Kh$026172f294e241d455f6480109639fd4653d98d2', False, True, False, u'2012-01-01 00:00:00', u'2011-01-01 00:00:00', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = USERTEST/999/USERTEST1 AND "django_comment_client_role"."name" = Moderator ); args=(u'USERTEST/999/USERTEST1', 'Moderator') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "django_comment_client_role" ("name", "course_id") VALUES (Moderator, USERTEST/999/USERTEST1); args=['Moderator', u'USERTEST/999/USERTEST1'] | |
| django.db.backends: DEBUG: (0.000) SELECT "student_userstanding"."id", "student_userstanding"."user_id", "student_userstanding"."account_status", "student_userstanding"."changed_by_id", "student_userstanding"."standing_last_changed_at" FROM "student_userstanding" WHERE "student_userstanding"."user_id" IS NULL; args=() | |
| tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/api/server/users", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/api/server/users"}, "time": "2014-10-07T16:48:19.461649+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"{\\\"username\\\": \\\"8f09b913-4f6a-451e-89a1-ef80a3ef7b8353\\\", \\\"first_name\\\": \\\"acbbfeb1-dff0-44d3-bb0f-6ff1b5e4b6b9\\\", \\\"password\\\": \\\"Test.Me64!\\\", \\\"email\\\": \\\"50c27e6e-b57a-458f-ad57-e1a375e24259@test.org\\\", \\\"last_name\\\": \\\"6c99c135-ddbf-4ae9-9f9c-61f913d1bcf8\\\"}\": [\"\"]}, \"GET\": {}}", "agent": "", "page": null} | |
| django.db.backends: DEBUG: (0.000) SELECT "splash_splashconfig"."id", "splash_splashconfig"."change_date", "splash_splashconfig"."changed_by_id", "splash_splashconfig"."enabled", "splash_splashconfig"."cookie_name", "splash_splashconfig"."cookie_allowed_values", "splash_splashconfig"."unaffected_usernames", "splash_splashconfig"."unaffected_url_paths", "splash_splashconfig"."redirect_url" FROM "splash_splashconfig" ORDER BY "splash_splashconfig"."change_date" DESC LIMIT 1; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "dark_lang_darklangconfig"."id", "dark_lang_darklangconfig"."change_date", "dark_lang_darklangconfig"."changed_by_id", "dark_lang_darklangconfig"."enabled", "dark_lang_darklangconfig"."released_languages" FROM "dark_lang_darklangconfig" ORDER BY "dark_lang_darklangconfig"."change_date" DESC LIMIT 1; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "embargo_embargoedcourse"."id", "embargo_embargoedcourse"."course_id", "embargo_embargoedcourse"."embargoed" FROM "embargo_embargoedcourse" WHERE "embargo_embargoedcourse"."course_id" = ; args=('',) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_user" ("username", "first_name", "last_name", "email", "password", "is_staff", "is_active", "is_superuser", "last_login", "date_joined") VALUES (8f09b913-4f6a-451e-89a1-ef80a3ef7b8353, , , 50c27e6e-b57a-458f-ad57-e1a375e24259@test.org, , False, True, False, 2014-10-07 16:48:19.466576, 2014-10-07 16:48:19.466598); args=[u'8f09b913-4f6a-451e-89a1-ef80a3ef7b8353', '', '', u'50c27e6e-b57a-458f-ad57-e1a375e24259@test.org', '', False, True, False, u'2014-10-07 16:48:19.466576', u'2014-10-07 16:48:19.466598'] | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "auth_user" WHERE "auth_user"."id" = 2 LIMIT 1; args=(2,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "auth_user" SET "username" = 8f09b913-4f6a-451e-89a1-ef80a3ef7b8353, "first_name" = acbbfeb1-dff0-44d3-bb0f-6ff1b5e4b6b9, "last_name" = 6c99c135-ddbf-4ae9-9f9c-61f913d1bcf8, "email" = 50c27e6e-b57a-458f-ad57-e1a375e24259@test.org, "password" = sha1$mgvLdusPpRdx$0ff0d1f38051a7c2cadd518f8d26dd41a4bf70b2, "is_staff" = False, "is_active" = True, "is_superuser" = False, "last_login" = 2014-10-07 16:48:19.466576, "date_joined" = 2014-10-07 16:48:19.466598 WHERE "auth_user"."id" = 2 ; args=(u'8f09b913-4f6a-451e-89a1-ef80a3ef7b8353', u'acbbfeb1-dff0-44d3-bb0f-6ff1b5e4b6b9', u'6c99c135-ddbf-4ae9-9f9c-61f913d1bcf8', u'50c27e6e-b57a-458f-ad57-e1a375e24259@test.org', 'sha1$mgvLdusPpRdx$0ff0d1f38051a7c2cadd518f8d26dd41a4bf70b2', False, True, False, u'2014-10-07 16:48:19.466576', u'2014-10-07 16:48:19.466598', 2) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "auth_userprofile" ("user_id", "name", "meta", "courseware", "language", "location", "year_of_birth", "gender", "level_of_education", "mailing_address", "city", "country", "goals", "allow_certificate", "title", "avatar_url") VALUES (2, acbbfeb1-dff0-44d3-bb0f-6ff1b5e4b6b9 6c99c135-ddbf-4ae9-9f9c-61f913d1bcf8, , course.xml, , , None, , , None, , , None, True, , None); args=[2, 'acbbfeb1-dff0-44d3-bb0f-6ff1b5e4b6b9 6c99c135-ddbf-4ae9-9f9c-61f913d1bcf8', '', u'course.xml', '', '', None, '', '', None, '', u'', None, True, '', None] | |
| django.db.backends: DEBUG: (0.000) SELECT "user_api_userpreference"."id", "user_api_userpreference"."user_id", "user_api_userpreference"."key", "user_api_userpreference"."value" FROM "user_api_userpreference" WHERE ("user_api_userpreference"."user_id" = 2 AND "user_api_userpreference"."key" = pref-lang ); args=(2, 'pref-lang') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "user_api_userpreference" ("user_id", "key", "value") VALUES (2, pref-lang, ); args=[2, 'pref-lang', ''] | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "user_api_userpreference" WHERE "user_api_userpreference"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "user_api_userpreference" SET "user_id" = 2, "key" = pref-lang, "value" = en WHERE "user_api_userpreference"."id" = 1 ; args=(2, 'pref-lang', 'en', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "user_api_userpreference"."id", "user_api_userpreference"."user_id", "user_api_userpreference"."key", "user_api_userpreference"."value" FROM "user_api_userpreference" WHERE ("user_api_userpreference"."user_id" = 2 AND "user_api_userpreference"."key" = notification_pref ); args=(2, 'notification_pref') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "user_api_userpreference" ("user_id", "key", "value") VALUES (2, notification_pref, r8jPSyXovmi_Rz4nXcOOfhp6jfEVUna5zt_6PyDk9DxvwLYYrXvhz5pA14vqZY9BOXSiUTkMlDXexOALaUUtbQ==); args=[2, 'notification_pref', 'r8jPSyXovmi_Rz4nXcOOfhp6jfEVUna5zt_6PyDk9DxvwLYYrXvhz5pA14vqZY9BOXSiUTkMlDXexOALaUUtbQ=='] | |
| audit: INFO: API::New account created with user-id - 2 | |
| django.db.backends: DEBUG: (0.000) SELECT "student_userstanding"."id", "student_userstanding"."user_id", "student_userstanding"."account_status", "student_userstanding"."changed_by_id", "student_userstanding"."standing_last_changed_at" FROM "student_userstanding" WHERE "student_userstanding"."user_id" IS NULL; args=() | |
| tracking: INFO: {"username": "", "host": "testserver", "event_source": "server", "event_type": "/api/server/users/2/courses", "context": {"user_id": "", "org_id": "", "course_id": "", "path": "/api/server/users/2/courses"}, "time": "2014-10-07T16:48:19.476202+00:00", "ip": "127.0.0.1", "event": "{\"POST\": {\"{\\\"course_id\\\": \\\"USERTEST/999/USERTEST1\\\"}\": [\"\"]}, \"GET\": {}}", "agent": "", "page": null} | |
| django.db.backends: DEBUG: (0.000) SELECT "embargo_embargoedcourse"."id", "embargo_embargoedcourse"."course_id", "embargo_embargoedcourse"."embargoed" FROM "embargo_embargoedcourse" WHERE "embargo_embargoedcourse"."course_id" = ; args=('',) | |
| django.db.backends: DEBUG: (0.000) SELECT "auth_user"."id", "auth_user"."username", "auth_user"."first_name", "auth_user"."last_name", "auth_user"."email", "auth_user"."password", "auth_user"."is_staff", "auth_user"."is_active", "auth_user"."is_superuser", "auth_user"."last_login", "auth_user"."date_joined" FROM "auth_user" WHERE "auth_user"."id" = 2 ; args=(2,) | |
| stevedore.extension: DEBUG: found extension EntryPoint.parse('block-v1 = opaque_keys.edx.locator:BlockUsageLocator') | |
| django.db.backends: DEBUG: (0.000) SELECT "student_courseenrollment"."id", "student_courseenrollment"."user_id", "student_courseenrollment"."course_id", "student_courseenrollment"."created", "student_courseenrollment"."is_active", "student_courseenrollment"."mode" FROM "student_courseenrollment" WHERE ("student_courseenrollment"."course_id" = USERTEST/999/USERTEST1 AND "student_courseenrollment"."user_id" = 2 ); args=(u'USERTEST/999/USERTEST1', 2) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "student_courseenrollment" ("user_id", "course_id", "created", "is_active", "mode") VALUES (2, USERTEST/999/USERTEST1, 2014-10-07 16:48:19.483729, True, honor); args=[2, u'USERTEST/999/USERTEST1', u'2014-10-07 16:48:19.483729', True, u'honor'] | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = USERTEST/999/USERTEST1 AND "django_comment_client_role"."name" = Student ); args=(u'USERTEST/999/USERTEST1', 'Student') | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "django_comment_client_role" ("name", "course_id") VALUES (Student, USERTEST/999/USERTEST1); args=['Student', u'USERTEST/999/USERTEST1'] | |
| django.db.backends: DEBUG: (0.001) SELECT "django_comment_client_role_users"."role_id" FROM "django_comment_client_role_users" WHERE ("django_comment_client_role_users"."role_id" IN (2) AND "django_comment_client_role_users"."user_id" = 2 ); args=(2, 2) | |
| django.db.backends: DEBUG: (0.000) INSERT INTO "django_comment_client_role_users" ("role_id", "user_id") SELECT 2 AS "role_id", 2 AS "user_id"; args=(2, 2) | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "student_courseenrollment" WHERE "student_courseenrollment"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "student_courseenrollment" SET "user_id" = 2, "course_id" = USERTEST/999/USERTEST1, "created" = 2014-10-07 16:48:19.483729, "is_active" = False, "mode" = honor WHERE "student_courseenrollment"."id" = 1 ; args=(2, u'USERTEST/999/USERTEST1', u'2014-10-07 16:48:19.483729', False, 'honor', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = USERTEST/999/USERTEST1 AND "django_comment_client_role"."name" = Student ); args=(u'USERTEST/999/USERTEST1', 'Student') | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role_users"."role_id" FROM "django_comment_client_role_users" WHERE ("django_comment_client_role_users"."role_id" IN (2) AND "django_comment_client_role_users"."user_id" = 2 ); args=(2, 2) | |
| django.db.backends: DEBUG: (0.000) SELECT (1) AS "a" FROM "student_courseenrollment" WHERE "student_courseenrollment"."id" = 1 LIMIT 1; args=(1,) | |
| django.db.backends: DEBUG: (0.000) UPDATE "student_courseenrollment" SET "user_id" = 2, "course_id" = USERTEST/999/USERTEST1, "created" = 2014-10-07 16:48:19.483729, "is_active" = True, "mode" = honor WHERE "student_courseenrollment"."id" = 1 ; args=(2, u'USERTEST/999/USERTEST1', u'2014-10-07 16:48:19.483729', True, 'honor', 1) | |
| django.db.backends: DEBUG: (0.000) SELECT "django_comment_client_role"."id", "django_comment_client_role"."name", "django_comment_client_role"."course_id" FROM "django_comment_client_role" WHERE ("django_comment_client_role"."course_id" = USERTEST/999/USERTEST1 AND "django_comment_client_role"."name" = Student ); args=(u'USERTEST/999/USERTEST1', 'Student') | |
| django.db.backends: DEBUG: (0.001) SELECT "django_comment_client_role_users"."role_id" FROM "django_comment_client_role_users" WHERE ("django_comment_client_role_users"."role_id" IN (2) AND "django_comment_client_role_users"."user_id" = 2 ); args=(2, 2) | |
| tracking: INFO: {"username": "", "event_source": "server", "name": "edx.course.enrollment.activated", "time": "2014-10-07T16:48:19.497679+00:00", "agent": "", "page": null, "host": "testserver", "session": "", "context": {"user_id": "", "org_id": "USERTEST", "course_id": "USERTEST/999/USERTEST1", "path": "/api/server/users/2/courses"}, "ip": "127.0.0.1", "event": {"course_id": "USERTEST/999/USERTEST1", "user_id": 2, "mode": "honor"}, "event_type": "edx.course.enrollment.activated"} | |
| root: ERROR: Uncaught exception from <class 'django.test.client.ClientHandler'> | |
| Traceback (most recent call last): | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response | |
| response = callback(request, *callback_args, **callback_kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/compat.py", line 120, in view | |
| return self.dispatch(request, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view | |
| return view_func(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 326, in dispatch | |
| response = self.handle_exception(exc) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 323, in dispatch | |
| response = handler(request, *args, **kwargs) | |
| File "/edx/app/edxapp/edx-platform/lms/djangoapps/api_manager/users/views.py", line 728, in post | |
| default_cohort = get_cohort_by_name(course_id, CourseUserGroup.default_cohort_name) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/course_groups/cohorts.py", line 202, in get_cohort_by_name | |
| name=name | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py", line 131, in get | |
| return self.get_query_set().get(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 358, in get | |
| clone = self.filter(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 624, in filter | |
| return self._filter_or_exclude(False, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 642, in _filter_or_exclude | |
| clone.query.add_q(Q(*args, **kwargs)) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1250, in add_q | |
| can_reuse=used_aliases, force_having=force_having) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1185, in add_filter | |
| connector) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 69, in add | |
| value = obj.prepare(lookup_type, value) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 320, in prepare | |
| return self.field.get_prep_lookup(lookup_type, value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 103, in get_prep_lookup | |
| _strip_value(value, lookup) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 310, in get_prep_lookup | |
| return self.get_prep_value(value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 110, in get_prep_value | |
| assert isinstance(value, CourseKey) | |
| AssertionError | |
| django.request: ERROR: Internal Server Error: /api/server/users/2/courses | |
| Traceback (most recent call last): | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/core/handlers/base.py", line 111, in get_response | |
| response = callback(request, *callback_args, **callback_kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/compat.py", line 120, in view | |
| return self.dispatch(request, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/views/decorators/csrf.py", line 77, in wrapped_view | |
| return view_func(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 326, in dispatch | |
| response = self.handle_exception(exc) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/rest_framework/views.py", line 323, in dispatch | |
| response = handler(request, *args, **kwargs) | |
| File "/edx/app/edxapp/edx-platform/lms/djangoapps/api_manager/users/views.py", line 728, in post | |
| default_cohort = get_cohort_by_name(course_id, CourseUserGroup.default_cohort_name) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/course_groups/cohorts.py", line 202, in get_cohort_by_name | |
| name=name | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/manager.py", line 131, in get | |
| return self.get_query_set().get(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 358, in get | |
| clone = self.filter(*args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 624, in filter | |
| return self._filter_or_exclude(False, *args, **kwargs) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/query.py", line 642, in _filter_or_exclude | |
| clone.query.add_q(Q(*args, **kwargs)) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1250, in add_q | |
| can_reuse=used_aliases, force_having=force_having) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/query.py", line 1185, in add_filter | |
| connector) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 69, in add | |
| value = obj.prepare(lookup_type, value) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/sql/where.py", line 320, in prepare | |
| return self.field.get_prep_lookup(lookup_type, value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 103, in get_prep_lookup | |
| _strip_value(value, lookup) | |
| File "/edx/app/edxapp/venvs/edxapp/local/lib/python2.7/site-packages/django/db/models/fields/__init__.py", line 310, in get_prep_lookup | |
| return self.get_prep_value(value) | |
| File "/edx/app/edxapp/edx-platform/common/djangoapps/xmodule_django/models.py", line 110, in get_prep_value | |
| assert isinstance(value, CourseKey) | |
| AssertionError | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| django.db.backends: DEBUG: (0.000) SELECT "course_groups_courseusergroup"."id", "course_groups_courseusergroup"."name", "course_groups_courseusergroup"."course_id", "course_groups_courseusergroup"."group_type" FROM "course_groups_courseusergroup" LIMIT 21; args=() | |
| --------------------- >> end captured logging << --------------------- | |
| ----------------------------------------------------------------------------- | |
| 2447 tests run in 901.9 seconds. | |
| 7 FAILED, 14 skipped (2426 tests passed) | |
| Destroying test database for alias 'default'... | |
| Cleaning up after lms | |
| ---> pavelib.utils.test.utils.clean_mongo | |
| mongo localhost:27017 /edx/app/edxapp/edx-platform/scripts/delete-mongo-test-dbs.js | |
| MongoDB shell version: 2.4.11 | |
| connecting to: localhost:27017/test | |
| Dropping test db test_xlog | |
| Setting up for common/lib/sandbox-packages | |
| python -m coverage run --rcfile=common/lib/sandbox-packages/.coveragerc `which nosetests` --id-file=/edx/app/edxapp/edx-platform/.testids/common/lib/sandbox-packages/noseids common/lib/sandbox-packages --with-xunit --xunit-file=/edx/app/edxapp/edx-platform/reports/common/lib/sandbox-packages/nosetests.xml --verbosity=1 | |
| ======================================== | |
| Running tests for common/lib/sandbox-packages | |
| ======================================== | |
| ....................................................... | |
| ----------------------------------------------------------------------------- | |
| 55 tests run in 0.2 seconds (55 tests passed) | |
| Cleaning up after common/lib/sandbox-packages | |
| ---> pavelib.utils.test.utils.clean_mongo | |
| mongo localhost:27017 /edx/app/edxapp/edx-platform/scripts/delete-mongo-test-dbs.js | |
| MongoDB shell version: 2.4.11 | |
| connecting to: localhost:27017/test | |
| Setting up for common/lib/safe_lxml | |
| python -m coverage run --rcfile=common/lib/safe_lxml/.coveragerc `which nosetests` --id-file=/edx/app/edxapp/edx-platform/.testids/common/lib/safe_lxml/noseids common/lib/safe_lxml --with-xunit --xunit-file=/edx/app/edxapp/edx-platform/reports/common/lib/safe_lxml/nosetests.xml --verbosity=1 | |
| ======================================== | |
| Running tests for common/lib/safe_lxml | |
| ======================================== | |
| ----------------------------------------------------------------------------- | |
| 0 tests run in 0.0 seconds (0 tests passed) | |
| Cleaning up after common/lib/safe_lxml | |
| ---> pavelib.utils.test.utils.clean_mongo | |
| mongo localhost:27017 /edx/app/edxapp/edx-platform/scripts/delete-mongo-test-dbs.js | |
| MongoDB shell version: 2.4.11 | |
| connecting to: localhost:27017/test | |
| Setting up for common/lib/capa | |
| python -m coverage run --rcfile=common/lib/capa/.coveragerc `which nosetests` --id-file=/edx/app/edxapp/edx-platform/.testids/common/lib/capa/noseids common/lib/capa --with-xunit --xunit-file=/edx/app/edxapp/edx-platform/reports/common/lib/capa/nosetests.xml --verbosity=1 | |
| ======================================== | |
| Running tests for common/lib/capa | |
| ======================================== | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| .............................................. | |
| ----------------------------------------------------------------------------- | |
| 277 tests run in 6.7 seconds (277 tests passed) | |
| Cleaning up after common/lib/capa | |
| ---> pavelib.utils.test.utils.clean_mongo | |
| mongo localhost:27017 /edx/app/edxapp/edx-platform/scripts/delete-mongo-test-dbs.js | |
| MongoDB shell version: 2.4.11 | |
| connecting to: localhost:27017/test | |
| Setting up for common/lib/symmath | |
| python -m coverage run --rcfile=common/lib/symmath/.coveragerc `which nosetests` --id-file=/edx/app/edxapp/edx-platform/.testids/common/lib/symmath/noseids common/lib/symmath --with-xunit --xunit-file=/edx/app/edxapp/edx-platform/reports/common/lib/symmath/nosetests.xml --verbosity=1 | |
| ======================================== | |
| Running tests for common/lib/symmath | |
| ======================================== | |
| ......... | |
| ----------------------------------------------------------------------------- | |
| 9 tests run in 2.2 seconds (9 tests passed) | |
| Cleaning up after common/lib/symmath | |
| ---> pavelib.utils.test.utils.clean_mongo | |
| mongo localhost:27017 /edx/app/edxapp/edx-platform/scripts/delete-mongo-test-dbs.js | |
| MongoDB shell version: 2.4.11 | |
| connecting to: localhost:27017/test | |
| Setting up for common/lib/chem | |
| python -m coverage run --rcfile=common/lib/chem/.coveragerc `which nosetests` --id-file=/edx/app/edxapp/edx-platform/.testids/common/lib/chem/noseids common/lib/chem --with-xunit --xunit-file=/edx/app/edxapp/edx-platform/reports/common/lib/chem/nosetests.xml --verbosity=1 | |
| ======================================== | |
| Running tests for common/lib/chem | |
| ======================================== | |
| ............................................................................. | |
| ......... | |
| ----------------------------------------------------------------------------- | |
| 86 tests run in 2.1 seconds (86 tests passed) | |
| Cleaning up after common/lib/chem | |
| ---> pavelib.utils.test.utils.clean_mongo | |
| mongo localhost:27017 /edx/app/edxapp/edx-platform/scripts/delete-mongo-test-dbs.js | |
| MongoDB shell version: 2.4.11 | |
| connecting to: localhost:27017/test | |
| Setting up for common/lib/xmodule | |
| python -m coverage run --rcfile=common/lib/xmodule/.coveragerc `which nosetests` --id-file=/edx/app/edxapp/edx-platform/.testids/common/lib/xmodule/noseids common/lib/xmodule --with-xunit --xunit-file=/edx/app/edxapp/edx-platform/reports/common/lib/xmodule/nosetests.xml --verbosity=1 | |
| ======================================== | |
| Running tests for common/lib/xmodule | |
| ======================================== | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| ............................................................................. | |
| .-...-....-.................................................................. | |
| .................................................. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment