diff options
| author | 2019-03-28 13:45:18 -0700 | |
|---|---|---|
| committer | 2019-03-28 13:45:18 -0700 | |
| commit | f8014521f7095aeba9344bb6c529ee57111d72e1 (patch) | |
| tree | 2e61ab7e85b0cd31d80b60e88fdc7bf105bc0018 /tests | |
| parent | Add Azure CI. (#16) (diff) | |
| parent | Merge remote-tracking branch 'origin' into rmq_removal (diff) | |
Replace RMQ with a POST endpoint (#7)
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') | 
