aboutsummaryrefslogtreecommitdiffstats
path: root/tests/api (follow)
Commit message (Collapse)AuthorAgeLines
* Merge stdout and stderrGravatar MarkKoz2019-06-15-1/+0
| | | | | | Removes the need for redirecting stderr using contextlib in the input. Furthermore, it captures errors which don't directly come from the input, such as SyntaxErrors.
* Respond to eval with stdout, stderr, and the return codeGravatar MarkKoz2019-06-05-3/+10
| | | | | | | | | The previous implementation limited the client's flexibility in presenting the results of the process. A process can write to both stdout and stderr and do so even when the return code is not 0 or 1. * Return a CompletedProcess from NsJail * Don't check the return code; this should be done client-side now
* Add logging for NsJailGravatar MarkKoz2019-06-05-1/+1
| | | | | | | | | | | NsJail's is configured to log to a temporary file rather than stderr. The contents of the file are parsed using regex after the process exits. When not debugging, some blacklisted messages and most info-level messages are skipped. * Add a snekbox logger * Log the Python code being executed if debugging * Use nested single quotes in a test to fix a linter error
* Move SnekAPI import back to top of moduleGravatar MarkKoz2019-05-29-1/+2
|
* Add API tests for eval resourceGravatar MarkKoz2019-05-29-0/+65