Alexander Kryklia
100da2aef9
added gst tests for import
2013-01-15 12:55:20 +02:00
Alexander Kryklia
b0b4a90bd3
added gst tests for export
2013-01-15 12:55:20 +02:00
Carlos Andrés Rocha
8f21d7a738
Add property to course module to check if a course is new
...
The property can be set in the policy metadata. If it is not specified
then it is set to true if the course has not started yet.
Also adds a property to check how many days are left until the course starts.
2013-01-10 15:57:29 -05:00
Victor Shnayder
4b58cb9560
Fix attempt tracking, fix test
...
- increments attempts on any transition to DONE state
2012-11-28 15:04:07 -05:00
Victor Shnayder
4fd1a2fa1a
Fix state tracking for self-assessment.
...
now keep each set of responses in a separate dictionary
2012-11-28 14:09:09 -05:00
Victor Shnayder
f8e45e0a8e
Add tests for old logic
2012-11-28 13:21:48 -05:00
Victor Shnayder
a0a5167207
Hook up testing for self assessment modules
2012-11-28 11:12:06 -05:00
Victor Shnayder
0ad2154b86
merge in origin/master
2012-11-12 13:10:21 -05:00
Vik Paruchuri
fee0facd39
Add in some docs for tests, factor out class name in js
2012-11-06 09:30:59 -05:00
Vik Paruchuri
71547e29da
Added tests for selfassessment import and export (both pass)
2012-11-06 09:17:35 -05:00
Vik Paruchuri
b209018c46
Adding tests
2012-11-06 09:03:59 -05:00
Victor Shnayder
55a0cada7b
Fix a bug with pointer-tag detection on load
...
if a tag has text but no children, wasn't properly detected as an inline definition.
2012-11-02 16:59:41 -04:00
Victor Shnayder
9e02b3ce34
Move tests around:
...
- move progress tests into test_progress.py
- move grader tests into test_graders.py
- move the capa tests into capa/tests/
2012-10-08 15:52:18 -04:00
Calen Pennington
d4377d4ada
Make imports into the CMS ignore broken modules, while still loading bad xml as error modules in the LMS
2012-09-25 10:10:44 -04:00
Victor Shnayder
b501367ed3
make the test ajax_url format consistent with real code
...
* specifically, no trailing slash
2012-09-10 14:28:09 -04:00
Calen Pennington
8030fdce80
Fix test and assertion reversal in progress test
2012-09-06 15:47:45 -04:00
Calen Pennington
5f261ec335
Test that values are clamped between 0 and 100% for progresses
2012-09-06 15:47:12 -04:00
Victor Shnayder
739dd8e3f9
fix for multiple url_name hashing bug
2012-09-06 10:12:48 -04:00
Victor Shnayder
79109a6244
Apply attr_map translation to metadata loaded from policy file as well as from xml.
2012-09-03 13:51:20 -04:00
David Ormsbee
69ea7aa873
Merge pull request #597 from MITx/feature/victor/nested-links
...
Feature/victor/nested links
2012-08-31 13:48:05 -07:00
Victor Shnayder
d815d50aee
Remove obsolete eager flag for xml modulestore
...
* has to be eager
2012-08-30 19:26:50 -04:00
Victor Shnayder
fe50f94437
Fix inline html bug.
...
* problem was in trying to remove the outer <html> + </html> tags.
* cleaned up the stringify function to be less magical, and more
obviously correct.
[Fix #35136297 ]
2012-08-28 19:54:57 -04:00
Arjun Singh
6a6b24af79
Disable jsresponse file compilation; done manually for now.
2012-08-28 12:40:49 -07:00
kimth
bad24df842
Adjust tests to reflect XML requirement for external grader messages
2012-08-28 13:31:06 -04:00
kimth
fb5501855c
Merge master
2012-08-28 12:37:24 -04:00
David Ormsbee
231b8c6aa4
Merge pull request #548 from MITx/kimth/limit-queue-dos
...
Kimth/limit queue dos
2012-08-28 08:03:02 -07:00
kimth
82a0d065a7
Use enumerate in loops
2012-08-27 20:04:48 -04:00
kimth
297df37fc0
Drop unnecessary iterator index
2012-08-27 19:59:22 -04:00
kimth
6302283183
Drop unnecessary .keys()
2012-08-27 19:57:46 -04:00
kimth
b4b8f6bc7d
Use with open(file) structure
2012-08-27 19:55:21 -04:00
kimth
2919389d8e
Use os.path.join -- all of them...
2012-08-27 19:53:10 -04:00
kimth
7c5879a1a5
Use os.path.join
2012-08-27 19:50:47 -04:00
Victor Shnayder
f81f94ec67
Allow location url_names to contain ':', mapping to / on file load
...
* New format: {tag}://{org}/{course}/{category}/{name}[@{revision}]
* Updated tests, code
* Added test chapter with : in url_name in toy course
* added test html page with : in url_name
* added a note to docs
2012-08-27 11:37:22 -04:00
kimth
f7c87aa7a1
Anonymous student id is a property of ModuleSystem
2012-08-25 09:03:47 -04:00
kimth
27459efcf7
Update CodeResponse test
2012-08-25 08:06:17 -04:00
kimth
088d204d9c
Added CodeResponse tests
2012-08-24 11:09:27 -04:00
kimth
97ab53e786
Queuekey --> Queuestate in tests
2012-08-24 08:28:47 -04:00
Victor Shnayder
f866854411
Load grading policy from policy/{url_name}/grading_policy.json
...
* with backcompat location /grading_policy.json
2012-08-21 15:00:21 -04:00
Victor Shnayder
c6c95c63ac
Keep each course's descriptors separate
...
* apply policy per-course, even if multiple courses share course and org fields
* keep descriptors separate in xml store, so that if two such courses
change the same module in different ways, it works. Such edits will need to
merged on CMS import...
* add get_instance(course_id, location) method to replace get_item(location).
Update all the call sites
* tests, including a 2nd toy course with same course and org.
2012-08-20 09:26:16 -04:00
kimth
52d243208e
Adjust tests to reflect list of file objects, not just file
2012-08-19 11:14:32 -04:00
ichuang
6e3eff304e
{} -> {0} etc in .format statements
2012-08-16 16:22:26 -04:00
Victor Shnayder
00d9ecd600
New policy organization:
...
* course roots live in roots/{url_name}.xml
- one is linked from course.xml
* policies live in policies/url_name.json
- loaded based on course url_name
* Updated to pass policy through into xml parsing, so it takes effect
before descriptor constructors are called.
* Update toy test course to new structure, fix up tests
2012-08-16 11:41:19 -04:00
Victor Shnayder
e4fb9ec63a
Remove is_staff from ModuleSystem
...
- now handling access control via get_module
2012-08-14 23:30:37 -04:00
Calen Pennington
32924d8bfe
Merge pull request #398 from MITx/kimth/partialgrading
...
Partial scoring
2012-08-13 07:19:50 -07:00
kimth
1ff8e271f5
Partial scoring
2012-08-13 10:14:29 -04:00
Calen Pennington
801df37872
Merge remote-tracking branch 'origin/master' into arjun/javascript_response
...
Conflicts:
common/lib/xmodule/xmodule/js/src/capa/display.coffee
common/lib/xmodule/xmodule/tests/__init__.py
common/lib/xmodule/xmodule/x_module.py
lms/djangoapps/courseware/module_render.py
2012-08-13 10:13:21 -04:00
Victor Shnayder
67949f8a32
Fix metadata inheritance
...
* with xml datastore, re-do all inheritance once the whole course is loaded
2012-08-10 13:15:14 -04:00
Calen Pennington
ecbb0ee39a
Merge pull request #373 from MITx/MITx/feature/bridger/fast_course_grading
...
Make templates render on non-xml modulestores
2012-08-09 10:41:19 -07:00
Victor Shnayder
298954fc01
Clean up customtag handling
...
* load the template at descriptor init
* make it export inline, not as a pointer
* update import/export test to do export to initial directory
2012-08-09 13:32:57 -04:00
Calen Pennington
4e5af13d52
Merge pull request #374 from MITx/kimth/lms-coderesponse
...
Kimth/lms coderesponse
2012-08-09 09:11:21 -07:00