diff options
author | 2019-01-20 20:42:34 +1000 | |
---|---|---|
committer | 2019-01-20 20:42:34 +1000 | |
commit | 2657852ee3e97ee2dc233c932bd7c88bceec94b1 (patch) | |
tree | 9f43cc705fe2b217b8fea1cababb97b795389757 /tests | |
parent | Upgrades Pipfile.lock to use requests 2.20.1, fixes CVE-2018-18074 (#2) (diff) |
Remove RMQ, Add API POST request method.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_snekbox.py | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/tests/test_snekbox.py b/tests/test_snekbox.py index e2505d6..cc79a2a 100644 --- a/tests/test_snekbox.py +++ b/tests/test_snekbox.py @@ -1,12 +1,6 @@ import unittest -import pytest -import os -import json from snekbox import Snekbox -from rmq import Rmq - -r = Rmq() snek = Snekbox() @@ -24,12 +18,14 @@ class SnekTests(unittest.TestCase): # self.assertEquals(result.strip(), 'timed out or memory limit exceeded') def test_timeout(self): - code = ('x = "*"\n' - 'while True:\n' - ' try:\n' - ' x = x * 99\n' - ' except:\n' - ' continue\n') + code = ( + 'x = "*"\n' + 'while True:\n' + ' try:\n' + ' x = x * 99\n' + ' except:\n' + ' continue\n' + ) result = snek.python3(code) self.assertEquals(result.strip(), 'timed out or memory limit exceeded') |