diff options
author | 2019-06-04 22:29:08 -0700 | |
---|---|---|
committer | 2019-06-05 09:13:02 -0700 | |
commit | 7916804de8176fa34e4dfc56c0543157e72985f1 (patch) | |
tree | 1ed35a590254693f715cb8ae34197e9fe6ea7925 /tests | |
parent | Merge remote-tracking branch 'origin/revitalisation' into refactor/nsjail (diff) |
Add logging for NsJail
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
Diffstat (limited to 'tests')
-rw-r--r-- | tests/api/test_eval.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/api/test_eval.py b/tests/api/test_eval.py index a5b83fd..bcd0ec4 100644 --- a/tests/api/test_eval.py +++ b/tests/api/test_eval.py @@ -26,7 +26,7 @@ class TestEvalResource(SnekAPITestCase): self.assertEqual(expected, result.json) def test_post_invalid_content_type_415(self): - body = "{\"input\": \"foo\"}" + body = "{'input': 'foo'}" headers = {"Content-Type": "application/xml"} result = self.simulate_post(self.PATH, body=body, headers=headers) |