Sarina Canelake
086f544a1a
Fix, and add more, tests
2013-09-27 12:17:45 -04:00
Nick Parlante
d225b85d1a
Port get-anonymized-id feature to new instructor dashboard
2013-09-25 13:52:05 -07:00
Adam Palay
f446c88f4d
fix tests
2013-09-12 09:32:34 -04:00
David Baumgold
45f38ddf81
Update requests library to 1.2.3
2013-09-10 09:59:21 -04:00
Calen Pennington
8201b1412e
Use XBlock 0.3
2013-09-06 09:45:59 -04:00
David Adams
c8b2863a46
Slightly change email registration template
...
Added some text to guide the student to register with a particular email address.
This is the one that was entered into the enrollment/invitation form by the instructor.
Modified the template and associated test.
2013-08-29 15:27:30 -07:00
Jason Bau
c160a189ad
Bulk email - final tweaks and cleanup
2013-08-29 12:40:34 -04:00
Calen Pennington
4b1fa6b316
Merge pull request #690 from cpennington/one-time-startup
...
One time startup centralization
2013-08-27 12:19:42 -07:00
Calen Pennington
407b02b358
Centralize startup code, and execute in all contexts
...
Inspired by: http://eldarion.com/blog/2013/02/14/entry-point-hook-django-projects/
Moves startup code to lms.startup and cms.startup, and calls the startup
methods in wsgi.py and manage.py for both projects.
2013-08-27 12:12:20 -04:00
Felix Sun
d9517ea13e
Fixed tests for removing hash access to hints. Fixed instructor view for same.
2013-08-26 09:40:04 -04:00
Felix Sun
4ee8111cf4
Fixed monkey-patching persistent state bug.
2013-08-26 09:40:03 -04:00
Felix Sun
6b40c5cf13
Changed hint voting ui to show all hints on one page.
...
Fixed broken tests for hint manager.
2013-08-26 09:40:03 -04:00
Will Daly
736b3e0ecd
Common djangoapps no longer access courseware; other cleanup
2013-08-22 14:08:35 -04:00
Will Daly
8165a033b1
Pep8/pylint fixes
...
Fixed test_masquerade failure due to not clearing the modulestore
between tests.
2013-08-21 19:42:59 -04:00
Will Daly
96c2a50370
Merge branch 'master' into will/use-mixed-modulestore-in-tests
...
Conflicts:
common/lib/xmodule/xmodule/modulestore/django.py
lms/djangoapps/courseware/tests/test_views.py
lms/djangoapps/courseware/tests/tests.py
2013-08-21 10:12:24 -04:00
Will Daly
48c6daacb8
Removed unnecessary settings wrangling from ModuleStoreTestCase.
...
Modified navigation tests to use MixedModulestore
Updated factories to find editable modulestore
Updated test_submitting_problems
Updated test_tabs.py
Updated test_view_authentication
Updated test_views
Updated courseware/tests/tests.py
Updated test_masquerade
Updated test_module_render
Pylint fixes
Updated video and word cloud tests
Updated course wiki tests
Updated license and open_ended tests.
One open_ended test still failing due to Mako initialization issues
Updated staticbook
Updated django_comment_client tests
Updated instructor tests
Updated instructor task tests
Updated external_auth tests
Updated course_groups
2013-08-21 09:36:45 -04:00
Chris Dodge
6a3dafeed6
update hint manager to pass in a course_id when dereferencing a module
2013-08-19 23:42:27 -04:00
Chris Dodge
61219169d4
change over the modulestore configuration to be a dict and use a property accessor. Also update some django-admin configs to use this means to set the runtime configuration
2013-08-15 22:58:04 -04:00
David Ormsbee
3ce87583ab
Shift enroll/unenroll logic to CourseEnrollment model, add is_active and mode.
...
Features coming down the pipe will want to be able to:
* Refer to enrollments before they are actually activated (approval step).
* See what courses a user used to be enrolled in for when they re-enroll in
the same course, or a different run of that course.
* Have different "modes" of enrolling in a course, representing things like
honor certificate enrollment, auditing (no certs), etc.
This change adds an is_active flag and mode (with default being "honor").
The commit is only as large as it is because many parts of the codebase were
manipulating enrollments by adding and removing CourseEnrollment objects
directly. It was necessary to create classmethods on CourseEnrollment to
encapsulate this functionality and then port everything over to using them.
The migration to add columns has been tested on a prod replica, and seems to be
fine for running on a live system with single digit millions of rows of
enrollments.
2013-08-14 13:23:06 -04:00
Miles Steele
7fe9f70ab3
fix test mocking
2013-08-08 13:16:49 -04:00
Miles Steele
fb8c84a516
add analytics proxy endpoint
2013-08-08 13:16:47 -04:00
David Baumgold
714d3b9662
pylint fixes
2013-08-06 14:36:13 -04:00
David Baumgold
ef4220ee43
Add unit tests to exercise common_exceptions_400 decorator
2013-08-05 16:54:56 -04:00
Miles Steele
4b671d1195
fix pylint violations
2013-08-02 09:53:21 -04:00
Miles Steele
b44e8fe8b8
add regrade & rescore & task api tests, clean api
2013-08-02 09:53:20 -04:00
Miles Steele
7905e7d289
add csv & enrollment & access api tests, disallow instructors from un-instructoring themselves, rename mode to action for access
2013-08-02 09:53:20 -04:00
Miles Steele
7392a888ce
cleanup, fix permissions, rename functions, add more api tests
2013-08-02 09:53:20 -04:00
Miles Steele
c6d6698abb
change MockEnrollmentState to SettableFakeEnrollmentState
2013-08-02 09:52:18 -04:00
Miles Steele
f488aa059b
rewrite test_access, add stricter argument to access
2013-08-02 09:52:18 -04:00
Miles Steele
cc9371d14e
fix formatting, address comments from PR #322
2013-08-02 09:52:18 -04:00
Miles Steele
94ac02e8b4
refactor enrollment action reporting
2013-08-02 09:52:17 -04:00
Miles Steele
096f7dcd23
add docstrings, cleanup (minor)
2013-08-02 09:52:17 -04:00
Miles Steele
0d6a12fda6
cleanup (fix typos, remove TODO, formatting)
2013-08-02 09:52:17 -04:00
Miles Steele
f25b414d40
fix pep8 violations, fix pylint violations
2013-08-02 09:52:15 -04:00
Miles Steele
f77ebc82ec
add tests
2013-08-02 09:52:15 -04:00
Miles Steele
a751702aa3
fix legacy tests to point to legacy
2013-08-02 09:52:15 -04:00
Miles Steele
741f31ab63
move tests to legacy
2013-08-02 09:52:14 -04:00
Calen Pennington
76055aa211
Add a manage.py command that understands the extra edX options
2013-07-24 09:04:12 -04:00
Don Mitchell
3722685e1a
No longer persist XModule templates
...
Instead, we use XModule field default values when creating an empty
XModule. Driven by this use case, we also allow for XModules to be
created in memory without being persisted to the database at all. This
necessitates a change to the Modulestore api, replacing clone_item with
create_draft and save_xmodule.
2013-07-16 14:33:58 -04:00
dcadams
e1a0499678
Added test for email body containing course url and some pep8 fixes.
2013-07-09 14:25:06 -07:00
Ned Batchelder
31a72093e0
Fix broken tests by simplifying the CourseFactory
...
The data argument was being treated specially, but that was just
because we didn't have **kwargs support. Now we do. There are
two uses of data=, one we convert to kwargs, the other was actually
unused, so remove it completely.
2013-07-03 17:04:18 -04:00
Jean Manuel Nater
5cb4c1a750
Removed some pep8 violations.
2013-07-01 17:07:24 -04:00
Jean Manuel Nater
72b4561e3a
Moved xml_store_config, mongo_store_config, and draft_mongo_store_config to xmodule/modulestore/tests/django_util.py
...
Removed some repeated instances of xml_store_config.
Reverted some changes to mongo_store_config so each modulestore gets it's own uuid.
2013-07-01 14:45:53 -04:00
Felix Sun
0c4d6ba6d9
Made explanation for hints field in crowdsource_hinter.py more clear.
...
Fixed various commenting things.
Removed an unused function in the crowdsourced module coffeescript.
Improved commenting in hint_manager.
Fixed pep and pylint violations.
2013-07-01 11:52:52 -04:00
Felix Sun
970a7f0916
Fixed some docstring formatting things.
...
Expanded test coverage a little.
2013-07-01 10:25:04 -04:00
Felix Sun
b6760cebca
Fixed a small, but dangerous, string-to-integer casting bug in hint_manager.
...
Expanded tests of hint_manager.
Enabled the hint_manager by default in development environments.
2013-07-01 10:25:04 -04:00
Felix Sun
6890563d43
Fixed broken tests. Made the hint manager enabled in testing environments - this lets us test the hint manager.
2013-07-01 10:25:04 -04:00
Felix Sun
ab303e7567
Fixed numerous code-formatting issues and pep8 violations.
...
Began enforcing one-vote-per-person. This can be disabled with debug="True" in the <crowdsource_hinter> tag.
Started tests of the hint manager.
2013-07-01 10:25:04 -04:00
Jean Manuel Nater
3c67e2754a
Merge branch 'master' into jnater/courseware_tests
...
Conflicts:
lms/djangoapps/courseware/tests/tests.py
lms/djangoapps/instructor/tests/test_enrollment.py
2013-06-27 13:53:47 -04:00
dcadams
306ac48210
Email on enroll/un-enroll actions
...
Optionally email students on enroll/un-enroll actions
by instructor from enrollment tab in LMS.
2013-06-26 15:28:36 -07:00