Commit Graph

2170 Commits

Author SHA1 Message Date
ichuang
5eda2f3a63 bugfixes - correctmap should reinit self.cmap on init 2012-06-10 18:41:54 -04:00
ichuang
5ac13e03aa fourth pass in capa cleanup:
- Added hints + hintmethod
  - hintgroup compatible with loncapa spec
  - also does hintfn for custom hints (can do answer history)
  - GenericResponse -> LoncapaResponse
  - moved response type tags into responsetype classes
  - capa_problem should use __future__ division
  - hints stored in CorrectMap, copied to 'feedback' in SimpleInput for display
2012-06-10 17:17:57 -04:00
ichuang
c724affe31 third pass in capa cleanup: correct_map -> CorrectMap
- added correctmap.py with CorrectMap class
  - messages subsumed into CorrectMap
  - response get_score called with old CorrectMap so hints based on history are possible
2012-06-09 23:29:08 -04:00
ichuang
7b3c79698f second pass in capa cleanup:
- each response can now render its own xhtml
  - cleaned up LoncapaProblem.extract_html
2012-06-09 21:29:11 -04:00
ichuang
7b3ad55307 responsetypes - fix comment 2012-06-09 18:36:27 -04:00
ichuang
46b45969d0 first pass in capa cleanup:
- responsetype used to be instantiated multiple times(!) in capa_problem
     now it is instantiated once, and stored in self.responders
   - responsetypes.GenericResponse restructured; each superclass
     show now provide setup_response (and not __init__), and may
     provide get_max_score(); general __init__ provided to
     clean up superclasses.
2012-06-09 18:36:27 -04:00
ichuang
ae44d86e27 add msg to textinput_dynamath 2012-06-09 18:36:27 -04:00
ichuang
2fdf948547 Merge pull request #91 from MITx/ps-dynamath
Refactor and test Dynamath Code (tested, works; one more changeset coming, to add msg back into textinput_dynamath)
2012-06-09 15:33:46 -07:00
Prem Sichanugrist
ac4f09ac4e Replace dynamite code with tested version 2012-06-08 11:16:03 -04:00
Prem Sichanugrist
c340ffe0a3 Fix code formatting 2012-06-08 10:40:25 -04:00
Calen Pennington
d690aebc78 Set up a pylintrc file 2012-06-08 09:08:18 -04:00
ichuang
37ae7afbd3 Merge pull request #92 from MITx/dogfood-xmodule
fix dogfood wrt lms / xmodule reorg; fix textinput_dynamath call
2012-06-07 19:13:57 -07:00
ichuang
9d0dfd2f02 fix dogfood wrt lms / xmodule reorg; fix textinput_dynamath call 2012-06-07 22:03:47 -04:00
David Ormsbee
bd2a44ade9 Merge pull request #90 from MITx/cpennington/capa_django_deps
Removing references to django.conf.settings from capa/responsetypes.py
2012-06-07 16:18:08 -07:00
David Ormsbee
2991eba1d5 Merge pull request #45 from MITx/problem_tests
Problem testing utility, reducing courseware/capa dependencies on Django
2012-06-07 16:16:39 -07:00
Calen Pennington
374ce67e36 Run pep8 and pylint on all libraries, not just the lms 2012-06-07 17:04:57 -04:00
Calen Pennington
1d1af3be74 Move coverage report html into the reports directory 2012-06-07 17:00:03 -04:00
Calen Pennington
92c6f1e63d Add reports for library tests 2012-06-07 16:54:05 -04:00
Bridger Maxwell
997c24f9e6 Merge branch 'master' of github.com:MITx/mitx 2012-06-07 16:50:01 -04:00
Bridger Maxwell
8a523997b1 Added setting for new changes to django-pipeline. Only sass is recompiled each time now. 2012-06-07 16:49:51 -04:00
Calen Pennington
c3e730a0a2 Add the capa module templates to the list of mako templates 2012-06-07 16:44:57 -04:00
Calen Pennington
80eb769d0c Pull StudentInputError from the module it's actually defined in 2012-06-07 16:43:59 -04:00
Calen Pennington
af8155641b Move remaining capa templates from courseware into common module 2012-06-07 16:41:01 -04:00
Calen Pennington
f78be58141 Cleaning up pep8 issues, including extraneous imports 2012-06-07 16:41:01 -04:00
Calen Pennington
f2309b3112 Remove references to djangosettings from responsetypes.py 2012-06-07 16:41:01 -04:00
Calen Pennington
f2423ca15e Add a local system with a mako render function for testing problems 2012-06-07 16:39:56 -04:00
Calen Pennington
684be8d257 Move capa templates into the capa library 2012-06-07 16:39:56 -04:00
David Ormsbee
8643b72550 Change inaccurate comment. 2012-06-07 16:39:56 -04:00
David Ormsbee
46e108e15b remove assumption that LoncapaProblem.fileobject is actually a file on the filesystem 2012-06-07 16:39:55 -04:00
David Ormsbee
b096981482 add a 'show' command to our little problem utility 2012-06-07 16:39:55 -04:00
David Ormsbee
9f2bce0001 Catch common case where problem answers are specified with units but don't expect them in the input 2012-06-07 16:39:55 -04:00
David Ormsbee
3cbb74aee7 fix breakage in problem checker caused by LoncapaProblem taking a file object in its constructor instead of a filename 2012-06-07 16:39:55 -04:00
David Ormsbee
accdbdd660 Check that blank answers are never marked correct (because of NaN issues) 2012-06-07 16:39:55 -04:00
David Ormsbee
0a5e6ce681 A little refactoring to make clearer what running test on problem means 2012-06-07 16:39:55 -04:00
David Ormsbee
d9e72b91ba add commandline flag for logging level 2012-06-07 16:39:55 -04:00
David Ormsbee
8131cb3334 Allow problem tests to run even if problems can't give us answers to check.
customresponses can't tell us what their answer is (there can be a
wide range of answers -- it's verified by a small program). So here
we simply ignore those fields we can't generate answers for when
doing tests against problems.
2012-06-07 16:39:55 -04:00
David Ormsbee
2c6efbfd5d only run problem testing when test command is entered in CLI 2012-06-07 16:39:55 -04:00
David Ormsbee
a2c4948cc5 initial commit for checker script that validates problem files 2012-06-07 16:39:55 -04:00
Calen Pennington
698fea8444 Make run.sh just run the relevant rake lms command 2012-06-07 16:38:18 -04:00
Calen Pennington
3f32e5bb3c Fix minor issue with an incomplete carry through of a name change 2012-06-07 16:36:39 -04:00
David Ormsbee
3f545511ba Merge pull request #89 from MITx/cpennington/courseware_documentation
Update documentation for functions inside common/xmodule
2012-06-07 11:22:15 -07:00
David Ormsbee
f28cba2a50 Merge pull request #88 from MITx/cpennington/courseware_tests
Move courseware tests into the common/xmodule library
2012-06-07 11:21:37 -07:00
Calen Pennington
d5e0fb3e69 Renaming item to only_one, and adding documentation 2012-06-07 11:48:23 -04:00
Calen Pennington
5101e575ba Adding documentation for parse_timedelta 2012-06-07 11:46:01 -04:00
Bridger Maxwell
d7957424fe Missing import was causing courseware errors 2012-06-07 11:33:54 -04:00
Calen Pennington
08220e09f7 Doing some stylistic cleanup on capa_module.py 2012-06-07 11:26:40 -04:00
Calen Pennington
6a13d3bba8 Documenting customtag format, and making it less brittle 2012-06-07 11:04:39 -04:00
Calen Pennington
a83fdc71f9 Document the aggregate_scores function 2012-06-07 10:46:10 -04:00
Calen Pennington
4a0969df9d Move tests for xmodules into the xmodule library, and make them run without django 2012-06-07 10:46:10 -04:00
Calen Pennington
bbfc1828cc Merge pull request #87 from MITx/victor/fix-multicourse-settings
Fix is_valid_course() in multicourse_settings
2012-06-07 07:17:17 -07:00