Commit Graph

3993 Commits

Author SHA1 Message Date
David Baumgold
4c304f1d18 Add unit test for failure case 2013-07-09 19:16:05 -04:00
David Baumgold
05cb13b171 Adding and fixing tests 2013-07-09 19:16:04 -04:00
David Baumgold
8934cf35ba Add pdf_textbooks tab when textbooks are created 2013-07-09 19:16:04 -04:00
David Baumgold
0d415d814b Remove unused imports 2013-07-09 19:16:03 -04:00
David Baumgold
4509dc03b0 Pull and save pdf textbook information to/from the correct modulestore 2013-07-09 19:16:02 -04:00
David Baumgold
6a3360cefa Full front-end/back-end connection via Backbone.sync. No data validation whatsoever. 2013-07-09 19:16:02 -04:00
David Baumgold
00b885deaa Update pdf textbooks backend to respond to AJAX requests with JSON 2013-07-09 19:16:01 -04:00
David Baumgold
e607bc70ad Pull assets into Mako template for PDF textbooks 2013-07-09 19:16:01 -04:00
Chris Dodge
cd7a448384 some tweeks to the negative testing 2013-07-09 19:16:00 -04:00
Chris Dodge
5e218389c9 add ability to do failure testing. If a post passes in a '?fail_at=<num_bytes>' then the middleware will throw an exception 2013-07-09 19:16:00 -04:00
Chris Dodge
b43f1c7331 add a new cms ENV configuration to use a slow upload file handler to help test progress bars in uploads 2013-07-09 19:15:59 -04:00
Chris Dodge
d4b1d4c60c return right mimetype from upload method. 2013-07-09 19:15:59 -04:00
David Baumgold
e0eec89e09 Truncate AJAX error messages in notification 2013-07-09 19:15:59 -04:00
David Baumgold
a84f66cd51 Pass asset upload URL to Javascript 2013-07-09 19:15:58 -04:00
David Baumgold
3d61c6294c Stubbed out textbooks index page 2013-07-09 19:15:58 -04:00
David Baumgold
cc4e01b4c6 Removed obsolete active_tab template variable 2013-07-09 19:15:58 -04:00
Chris Dodge
6642cdddae support uploading and referencing assets as streams rather than having to read everything into memory first 2013-07-09 19:15:58 -04:00
Jean Manuel Nater
18861e4ef9 Removed some pep8 violations. 2013-07-09 19:15:57 -04:00
Christina Roberts
bd96632139 Merge pull request #345 from edx/christina/course-creator-table
Admin table for course creators.
2013-07-09 13:18:35 -07:00
JonahStanley
0bd1e78e03 Acceptance tests use random ports 2013-07-09 12:18:30 -04:00
cahrens
28115af488 The course creator view adds granted users course creator status.
Includes unit tests and modifications to authz.py.
2013-07-08 16:08:06 -04:00
Will Daly
e477cceefb Merge pull request #346 from edx/will/disable-flakey-tests
Disabled tests that are failing in Jenkins
2013-07-08 09:55:09 -07:00
cahrens
b53899aa54 Merge branch 'master' into christina/course-creator-table 2013-07-08 12:12:04 -04:00
Will Daly
7085b95bc0 Disabled video test that was failing on Mac OS X 2013-07-08 10:51:31 -04:00
chrisndodge
57d82dea10 Merge pull request #330 from edx/fix/cdodge/delete-course-delete-drafts
[STUD-380] Fix/cdodge/delete course delete drafts
2013-07-08 07:24:24 -07:00
Will Daly
01eb93eb47 Disabled tests that are failing in Jenkins 2013-07-08 10:02:01 -04:00
cahrens
f1f6acb5c7 Updates to admin table view.
Also hooks up the granted and deny events to the course creator group.
2013-07-03 17:07:06 -04:00
Jonah Stanley
0be0df1b59 Merge pull request #325 from edx/jonahstanley/fix-flakey-tests
Made a css_html to obtain the html of the css element.
2013-07-03 11:55:25 -07:00
Chris Dodge
656f2b15fd remove redundent test until we get clarity as to if unit tests are actually using the codejail functionality or not 2013-07-03 13:46:32 -04:00
Chris Dodge
7962ad7dd0 remove incorrect comment 2013-07-03 13:46:31 -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
Chris Dodge
11ef3961bc try to add some additional diff coverage which should get us to 100% 2013-07-03 13:46:31 -04:00
Chris Dodge
9a8c5857e6 change settings to add test course to sandbox whitelist to try to increase diff code coverage 2013-07-03 13:46:31 -04:00
Chris Dodge
0e0dfd22cf add test for customresponse problem type 2013-07-03 13:46:31 -04:00
Chris Dodge
8d858ecb49 add a unit test to exercise the preview_component AJAX callback in the CMS 2013-07-03 13:46:31 -04:00
Chris Dodge
63ed16e118 add a 'can_execute_unsafe_code' callback method (ala LMS) to allow for whitelisting of courses with respect to codejailing 2013-07-03 13:46:31 -04:00
JonahStanley
221db93f01 Revert "Skipping the flakey tests for now"
This reverts commit d383a8add7.
2013-07-03 13:39:36 -04:00
JonahStanley
7fabac9a4b Skipped Flakey Tests for now 2013-07-03 13:31:13 -04:00
JonahStanley
d383a8add7 Skipping the flakey tests for now 2013-07-03 13:28:33 -04:00
Chris Dodge
b18fb97eed extend tests to assert that all draft content is cleaned up. Also add assertion that assets are deleted as well 2013-07-03 11:24:30 -04:00
JonahStanley
12a7922f89 Overzealous changing of find to click 2013-07-03 11:00:46 -04:00
JonahStanley
19513e4134 Refactored all clicks to use the css_click method 2013-07-03 10:34:56 -04:00
JonahStanley
9a5326bca5 Made a css_html to obtain the html of the css element.
This works like css_click in that it will retry if there was a stale element reference exception
2013-07-02 16:46:20 -04:00
Jonah Stanley
852292ebf7 Merge pull request #324 from edx/jonahstanley/fix-component-test
Jonahstanley/fix component test
2013-07-02 11:55:46 -07:00
JonahStanley
47158d7079 Using the success condition
Got rid of announcement test

Removed assumption about uniqueness of css steps
2013-07-02 14:52:32 -04:00
Adam Palay
c692428fe5 fix pylint violations 2013-07-02 10:22:26 -04:00
JonahStanley
3e44f8a213 Component test now fails with useful information 2013-07-02 09:05:58 -04:00
Adam Palay
03aee3ed79 add tests 2013-07-01 18:21:47 -04:00
Jonah Stanley
6f8a31206a Merge pull request #280 from edx/jonahstanley/explicit-component-creation-tests
Explicitly test the creation and deletion of every component type
2013-07-01 13:48:15 -07:00
Calen Pennington
1a7b833146 Merge pull request #269 from edx/dhm/incidental-functionality-improvements
Incidental functionality improvements from Next Gen Modulestore work
2013-07-01 13:04:20 -07:00