Ned Batchelder
716a97ea59
Symbolic response doesn't need to pre-import symmath any more, I think?
2013-05-06 10:55:05 -04:00
Ned Batchelder
e8da1b8f61
Turn off our debugging levers
2013-05-06 10:55:05 -04:00
Ned Batchelder
3316aeb032
Add back the not_safe_exec implementation, for debugging.
2013-05-06 10:55:05 -04:00
Ned Batchelder
ebb2624719
Make jailpy tests more convenient and informative.
2013-05-06 10:55:05 -04:00
Ned Batchelder
7c498be606
Move packages around so we can install packages into the sandbox.
2013-05-06 10:55:05 -04:00
Ned Batchelder
70930c25c1
Remove the unsafe version of safe_exec, and document the safe one.
2013-05-06 10:55:04 -04:00
Ned Batchelder
5db5426e05
Use the real safe_exec; make the seed available in the context.
2013-05-06 10:55:04 -04:00
Ned Batchelder
19e3a0ceb9
Implement safe_exec on top of jailpy (old unsafe safe_exec is still here); Remove some crazy stuff from the context; always pass globals and locals, locals are the things that can be changed.
2013-05-06 10:55:04 -04:00
Ned Batchelder
908f44b9cd
snippets aren't used. Remove them.
2013-05-06 10:55:04 -04:00
Ned Batchelder
249ba4be33
Finish the test for computed_answer
2013-05-06 10:55:04 -04:00
Ned Batchelder
248017b4ea
No longer need to support <coderesponse> without <codeparam>, so scrap the code.
2013-05-06 10:55:04 -04:00
Ned Batchelder
a6677aa0a8
Computed answers are run through safe_exec.
2013-05-06 10:55:04 -04:00
Ned Batchelder
37ca6bf77e
Move our specialization of safe_exec into a new module to avoid circular imports.
2013-05-06 10:55:04 -04:00
Ned Batchelder
6297d64528
Now these can be in the same test class
2013-05-06 10:55:04 -04:00
Ned Batchelder
ff1df569cb
Refactor submitting problems so we don't need custom code for each test.
2013-05-06 10:55:04 -04:00
Ned Batchelder
33abe54e0d
Work in progress to sandbox the uses of eval in LMS.
2013-05-06 10:55:03 -04:00
Ned Batchelder
0a6761c9a5
Clean up this xml data file.
2013-05-06 10:55:03 -04:00
Ned Batchelder
9249bafd00
Add a test of a bad answer also.
2013-05-06 10:55:03 -04:00
Ned Batchelder
e69a073161
Add a test for the Python in schemaresponse, and refactor the tests while I was in there.
2013-05-06 10:55:03 -04:00
Ned Batchelder
0c47f1e0b9
safe_exec can load modules for you.
2013-05-06 10:55:03 -04:00
Ned Batchelder
9827a0e218
Oops, this line can go too.
2013-05-06 10:55:03 -04:00
Ned Batchelder
4bb5d14f70
Test that we can't write files
2013-05-06 10:55:03 -04:00
Ned Batchelder
9cc43f1d9b
Simplify this test setup.
2013-05-06 10:55:03 -04:00
Ned Batchelder
6c609afdb1
LazyModule for lazily proxying module imports.
2013-05-06 10:55:03 -04:00
Ned Batchelder
17f9e4b27d
A turd left over from a test
2013-05-06 10:55:03 -04:00
Ned Batchelder
f8c5305352
Add some malware tests
2013-05-06 10:55:02 -04:00
Ned Batchelder
a9979b8aae
Killing processes isn't working.
2013-05-06 10:55:02 -04:00
Ned Batchelder
70c37130ac
A codejail package to run code securely.
2013-05-06 10:55:02 -04:00
Ned Batchelder
2717360de9
Make this work with non-Django test suites also.
2013-05-06 10:55:02 -04:00
David Baumgold
5e288b60ca
Merge pull request #1943 from edx/cleanup
...
One more attempt at making linters happier
2013-05-06 07:15:21 -07:00
Sarina
72584b5937
Merge pull request #1914 from edx/fix/sarina/new_formularesponse_defaults
...
Fix/sarina/new formularesponse defaults
2013-05-03 12:32:10 -07:00
David Baumgold
b344976fe7
Making linters happier
2013-05-03 15:08:28 -04:00
jarv
5d729c306b
Merge pull request #1942 from edx/fix/jbau/email_timezone_config
...
Inserts overrides in env.lms.aws for email settings and timezone
2013-05-03 11:54:51 -07:00
Jason Bau
7720c0fc8d
Inserts overrides in env.lms.aws for email settings and timezone
...
overrides what is set in env.lms.common using the lms.env.json
file
2013-05-03 11:45:21 -07:00
Steve Strassmann
dea1198d75
Merge pull request #1925 from edx/bug/straz/date
...
Bug/straz/date - fix date interpolation
2013-05-03 09:32:00 -07:00
brianhw
a294e2d1ac
Merge pull request #1937 from edx/victor/press
...
Press updates
2013-05-03 07:50:26 -07:00
Victor Shnayder
aae40b4378
Press updates
...
LH: 381, 382, 383
2013-05-03 08:55:40 -04:00
e0d
22e147b2c9
Merge pull request #1931 from edx/fix/zoldak/gcli-status
...
Change org for gcli status command from mitx to edx
2013-05-02 11:48:05 -07:00
jarv
161c8cb12e
Merge pull request #1929 from edx/jtauber/fix-forks
...
fix requirements to use moved forks
2013-05-02 10:16:46 -07:00
James Tauber
f566b4f003
fix requirements to use moved forks
2013-05-02 13:05:20 -04:00
Jay Zoldak
fc1a22de55
Merge pull request #1921 from edx/fix/zoldak/cms-jasmine-tests
...
Remove localization middleware from jasmine test execution
2013-05-02 09:45:58 -07:00
Jay Zoldak
0b452f6195
Change org for gcli status command from mitx to edx
2013-05-02 12:41:59 -04:00
Steve Strassmann
c9a80ded25
formatted using sublime/formatjs
2013-05-02 10:59:02 -04:00
Steve Strassmann
485d07a722
tabbing
2013-05-02 09:31:53 -04:00
Steve Strassmann
7c972ebf6e
fix date interpolation
2013-05-02 09:29:27 -04:00
brianhw
3650316ff5
Merge pull request #1922 from MITx/fix/cdodge/jsi18n-include
...
add leading slash to the jsi18n include
2013-05-01 13:06:38 -07:00
Chris Dodge
d807b955f7
add leading slash to the jsi18n include
2013-05-01 15:27:36 -04:00
Nate Hardison
1e21526dab
Merge pull request #1853 from MITx/feature/nate/updated-dev-env-setup
...
Feature/nate/updated dev env setup
2013-05-01 10:24:51 -07:00
Nate Hardison
2b17904c93
Replacing .rvmrc with .ruby-gemset
...
In order to avoid duplicating the Ruby version between the `.rvmrc`
and the `.ruby-version`, we'll get rid of the `.rvmrc` and use the
`.ruby-gemset` file to specify the gemset. These files are supported
by RVM as documented [here](https://gist.github.com/fnichol/1912050 ).
2013-05-01 10:22:57 -07:00
Nate Hardison
61ca49ac36
Adding a check for an existing virtualenv
...
This way, packages won't be inadvertently installed into the wrong
virtual environment. I tried to have the check just run `deactivate`,
but I couldn't figure out how to get that working, so the script
just bails.
2013-05-01 10:22:57 -07:00