Don Mitchell
be4fbc562e
Refactor tests to no longer use templates
...
Add boilerplate option to ItemFactory
Minor start date fix to not use microsecs
2013-07-16 16:00:28 -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
Don Mitchell
ef8618f7ad
Make DraftModuleStore mongo only
...
DraftModuleStore was originally designed as a mixin, but never used that
way, and with the upcoming changes to use the versioned module store,
never will be. This changes removes a circular dependency between
mongo.py and draft.py.
2013-07-16 08:55:26 -04:00
JonahStanley
484e217de3
Fixed some errors
2013-07-12 10:32:48 -04:00
JonahStanley
1f1bba5507
Scenario Dictionary now holds objects
2013-07-12 10:32:48 -04:00
JonahStanley
131f1a49c4
All lms acceptance tests refactored to use world dictionaries
2013-07-12 10:32:47 -04:00
JonahStanley
35094a968b
Beginnings of refactoring the acceptance tests
2013-07-12 10:32:45 -04:00
JonahStanley
c37a9e3e23
Refactored problem_setup to use retry_on_exception
2013-07-12 09:28:51 -04:00
JonahStanley
b4036c66cf
Refactored the ui tests to use retry_on_exception
2013-07-12 09:28:50 -04:00
JonahStanley
ebc9fa9e2a
Made a retry_on_exception world function that will retry the given function
2013-07-12 09:28:50 -04:00
JonahStanley
f1dd81a67a
Refactored LMS so all potential stale element exceptions are avoided
2013-07-12 09:28:49 -04:00
Vik Paruchuri
d710d8e43a
Merge remote-tracking branch 'origin/master' into fix/vik/studio-oe
2013-07-11 10:52:50 -04:00
JonahStanley
676da2d592
Removed set trace
2013-07-11 10:12:10 -04:00
JonahStanley
7fb5f505d6
Refactored out full from the lms tests
2013-07-11 10:12:06 -04:00
David Ormsbee
7993d5c1fc
Merge pull request #348 from edx/bugfix/ichuang/idasbhoard-track-json
...
tracking in idashboard should only log json-serializable objects
2013-07-10 10:17:30 -07:00
dcadams
a5f8607c7e
Merge pull request #357 from edx/bugfix/dcadams/enroll_emails
...
Fix course url link in enrollment emails.
2013-07-10 09:47:53 -07:00
ihoover
bec731207a
Merge pull request #362 from edx/ihoover/login_enrollment_refactor
...
refactor login and enrollment test cases to use the mongo modulestore
2013-07-10 08:06:32 -07:00
ihoover
5a03d93000
refactor login and enrollment test cases to use the mongo modulestore
...
added namee to authors file
2013-07-10 10:34:14 -04:00
dcadams
e1a0499678
Added test for email body containing course url and some pep8 fixes.
2013-07-09 14:25:06 -07:00
Adam Palay
e123a5f8ad
fix to problems with uploading files
2013-07-09 15:00:53 -04:00
ichuang
a2b552d05f
use unicode instead of str for casting track.views args in idashboard
2013-07-09 14:24:23 -04:00
dcadams
738ba15322
Fix course url link in enrollment emails.
2013-07-09 11:01:52 -07:00
David Baumgold
7db77dc525
Remove static_template_view tests
2013-07-09 12:54:50 -04:00
ichuang
f136edb469
tracking in idashboard should only log json-serializable objects
2013-07-08 11:52:39 -04: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
Ned Batchelder
a453de2fca
Merge pull request #323 from edx/ned/fix-lms-530
...
Fix LMS-530: Reflected XSS in chapter and page numbers
2013-07-03 12:28:19 -07:00
Ned Batchelder
1d5dfaa131
Add tests for image books, and more tests for the other kinds too.
2013-07-03 14:42:41 -04:00
Chris Dodge
bf3a7287f0
do some lamda magic to refactor out the whitelist checking code to be shared between LMS and CMS
2013-07-03 13:46:31 -04:00
Ned Batchelder
959274c730
Adapt the tests to the new way of making URLs.
2013-07-02 17:08:37 -04:00
Ned Batchelder
27c70ead1b
Tests and CHANGELOG for LMS-530
2013-07-02 13:30:00 -04:00
Ned Batchelder
f6b0ffd01f
Make some helpers for the tests.
2013-07-02 11:48:03 -04:00
Ned Batchelder
4ff2de69e7
Pylint fixes
2013-07-02 11:36:47 -04:00
Ned Batchelder
25d0f4d500
Remove unused URL /book-shifted/
2013-07-02 11:36:47 -04:00
Ned Batchelder
6c3563cc1a
Simple refactoring and reformatting of the view code.
2013-07-02 11:36:47 -04:00
Ned Batchelder
b5aebf0e02
Tests for staticbook
2013-07-02 11:36:47 -04:00
Adam Palay
c692428fe5
fix pylint violations
2013-07-02 10:22:26 -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
Felix Sun
bb922ed8d8
Moved the crowdsourced hinter module into mako template form.
...
Fixed some bugs in the tests for crowdsourced hinter.
2013-07-01 10:25:04 -04:00
Felix Sun
b64fe5c537
Finished prototype of hint moderation view. Began re-writing tests of the crowdsource hinter module. (Old tests no longer cover all the code, now that moderation has been added.)
2013-07-01 10:25:03 -04:00
Felix Sun
100f6bf11e
Began work on instructor view to hinting system.
...
Added moderation feature - you can now choose to hold all hints for moderator approval before showing.
2013-07-01 10:25:03 -04:00
Sarina Canelake
e5f97b372b
pep8 fixes
2013-06-28 18:00:41 -04:00
Jay Zoldak
b1424a75b8
Add a test for 404 raised when requesting the profile page of a user that does not exist
2013-06-28 16:51:24 -04:00
Sarina Canelake
09501a62e2
Handle exception with a 404
2013-06-28 16:14:56 -04:00
Vik Paruchuri
b38a36d44a
Fix test
2013-06-28 14:38:13 -04:00