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
Calen Pennington
92391a22fc
Don't force field inheritance of default values
2013-07-16 14:33:59 -04:00
Calen Pennington
0a38e490e3
Fix pep8/pylint errors
2013-07-16 14:33:59 -04:00
Calen Pennington
4b53478859
Require markdown to be explicitly set
2013-07-16 14:33:59 -04:00
Calen Pennington
8b5979641b
Change default rerandomize and showanswer
...
The defaults used to be rerandomize=always, showanswer=closed. This is
preserved for capa problems being imported from XML. However, for
courses, and for problems created in Studio, the default has been
changed to never/finished, to match the previous defaults used by
Studio.
2013-07-16 14:33:58 -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
8c904f31a9
Move defaults from yaml templates to field definitions.
...
This standardizes the XModule field default values to be the same as the
values that are presented by studio when a component is added to a
course.
2013-07-16 14:24:41 -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
Brian Talbot
388724c485
Studio: updates Sass mixins/extend references based on textbook/Sass cleanup
2013-07-15 10:12:51 -04:00
Brian Talbot
34e9a21da8
Studio: renames and simplifies .cont-trucated Sass extend
2013-07-15 10:12:50 -04:00
Brian Talbot
91a6e34769
Studio: adds further comment/prefix revisions to Sass extends
2013-07-15 10:12:50 -04:00
Brian Talbot
88d06a16e5
Studio: renames and re-orgs app-wide Sass extends
2013-07-15 10:12:50 -04:00
David Baumgold
7f5aedb215
Merge pull request #380 from edx/db/studio-i18n
...
Studio internationalization
2013-07-13 05:45:50 -07:00
chrisndodge
8f743424ba
Merge pull request #387 from edx/fix/cdodge/unescape-quote-strings
...
[STUD-406] Fix/cdodge/unescape quote strings
2013-07-12 15:32:55 -07:00
David Baumgold
a6f349dab9
Studio i18n
2013-07-12 16:25:39 -04:00
Chris Dodge
ac4e20b4f3
change serialize_field to check for type. If value is a string, simply return that, otherwise do a json.dumps
2013-07-12 15:27:36 -04:00
Jason Bau
e7bb85dee1
Merge pull request #259 from edx/features/jbau/stanford-shib
...
Bugfix for stanford shib
2013-07-12 10:19:58 -07:00
Chris Dodge
958ecdb053
raise a more appropriate Exception
2013-07-12 12:47:51 -04:00
Chris Dodge
547f4633d5
use better syntax for asserting that exception is thrown
2013-07-12 12:47:23 -04:00
Chris Dodge
ab4012cc59
fix up some of the test courses which had hardcoded that quot; escaping
2013-07-12 11:33:46 -04:00
Chris Dodge
5aae3c6971
add new tests for the string literal serialization
2013-07-12 11:14:35 -04:00
Chris Dodge
50bea28d75
Add a 'string literal' serialization method and use it in the lambda function mapping table when the value to xml serialize is of basestring type. Also a couple of drive-by pep8 fixes.
2013-07-12 11:13:59 -04:00
JonahStanley
940113efee
Fixed long lines
2013-07-12 10:32:49 -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
8110307ba9
CMS now refactored to use world dictionary
2013-07-12 10:32:48 -04:00
JonahStanley
35094a968b
Beginnings of refactoring the acceptance tests
2013-07-12 10:32:45 -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
1f648d901e
Revert "Reworded css_text to use css_find"
...
This reverts commit a7de337fe2d218d6cb9c2f175c6ea71f5ddcb6da.
2013-07-12 09:28:50 -04:00
JonahStanley
287b750a22
Reworded css_text to use css_find
2013-07-12 09:28:50 -04:00
JonahStanley
2c0c8dfb90
Fixed structure of css_text and css_value
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
JonahStanley
8b0e7c5782
Made a new command css_has_class that will safely check the class and get around stale elements
2013-07-12 09:28:49 -04:00
Peter Fogg
5b4524d75e
Merge pull request #301 from edx/peter-fogg/explicit-course-settings
...
Peter fogg/explicit course settings
2013-07-11 14:09:07 -07:00
Peter Fogg
6e94960488
Fix many validation bugs and failing tests.
2013-07-11 16:09:59 -04:00
chrisndodge
cf2b1e0595
Merge pull request #372 from edx/fix/cdodge/update-localdev-setting-for-unsafe-courses
...
Fix/cdodge/update localdev setting for unsafe courses
2013-07-11 13:01:45 -07:00
Jonah Stanley
50ea165a8e
Merge pull request #297 from edx/jonahstanley/refactor-unittest-courses
...
Jonahstanley/refactor unittest courses
2013-07-11 12:44:05 -07:00
JonahStanley
5d300bf36f
Fixed the broken unit tests from deleting full
2013-07-11 14:34:41 -04:00
Chris Dodge
fbe2cde6e5
add simple unit test on the defaulting of the settings
2013-07-11 14:31:53 -04:00
Chris Dodge
c3ad168b10
also add some defaulting to the querying of the settings where it defaults to an empty set
2013-07-11 12:12:42 -04:00
JonahStanley
4e015eacf5
Fixed the whitelist test to not use full course
2013-07-11 12:05:18 -04:00
JonahStanley
67326cfae8
Fixed xmodule tests to not rely on full
...
Also fixed things in the toy course where needed
2013-07-11 10:12:09 -04:00
JonahStanley
982777f547
All cms unit test no longer rely on the full course.
...
Factories were used when possible but tests depending on importing or things not manageable by factories used the toy course. New files were added to include the needed functionality. Most files are blank or have minimal xml needed to work
2013-07-11 10:09:05 -04:00
JonahStanley
55e6d1ad67
Asset tests do not rely on the full course
...
A blank asset file was also added to toy
2013-07-11 10:08:47 -04:00
JonahStanley
62f2764728
First half of refactorization.
...
This fixes the following tests(T stands for toy, F stands for factory made):
T import_textbook_as_content_element (needed to add a textbook to toy)
F static_tab_reordering
T import polls (needed to add a poll to toy)
T xlint_fails
F delete
T about_overrides (needed to add an about override to toy)
F remove_hide_progress_tab
2013-07-11 10:08:40 -04:00
JonahStanley
456daa9ce5
Deleted Files and annotated tests
2013-07-11 10:07:02 -04:00
David Ormsbee
aaf3a47538
Remove use of keyword "delete" in forum coffee code to fix IE8 bug LMS-441.
...
Change client-side code references from "delete" to "_delete". Some of these
were method names (or would generate method names), which breaks in IE8
because "delete" is a JavaScript reserved keyword. foo["delete"] is ok, but
foo.delete is not. This also makes forums marginally functional in IE8,
though the left-nav still has some display issues.
2013-07-10 17:54:13 -04:00
Jonah Stanley
786f422ffa
Merge pull request #298 from edx/jonahstanley/acceptance-tests-unique-database
...
Jonahstanley/acceptance tests unique database
2013-07-10 14:09:28 -07:00
David Baumgold
cb62797306
Merge pull request #347 from edx/update-sass
...
Update SASS and Bourbon, add Neat
2013-07-10 11:09:11 -07:00