aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_main.py
diff options
context:
space:
mode:
authorGravatar ionite34 <[email protected]>2022-11-19 21:10:20 -0500
committerGravatar ionite34 <[email protected]>2022-11-19 21:10:20 -0500
commitba6d0a8a10af687393134fc1e9662100ce67df52 (patch)
tree858ba25315e538c3ab25598b18e8e877fbf23d8e /tests/test_main.py
parentAdd DEBUG to __all__ (diff)
Implement files request form
Diffstat (limited to 'tests/test_main.py')
-rw-r--r--tests/test_main.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_main.py b/tests/test_main.py
index 1e6cbc5..24c067c 100644
--- a/tests/test_main.py
+++ b/tests/test_main.py
@@ -12,10 +12,10 @@ import snekbox.__main__ as snekbox_main
class ArgParseTests(unittest.TestCase):
def test_parse_args(self):
subtests = (
- (["", "code"], Namespace(code="code", nsjail_args=[], py_args=[])),
+ (["", "code"], Namespace(code="code", nsjail_args=[], py_args=["-c"])),
(
["", "code", "--time_limit", "0"],
- Namespace(code="code", nsjail_args=["--time_limit", "0"], py_args=[]),
+ Namespace(code="code", nsjail_args=["--time_limit", "0"], py_args=["-c"]),
),
(
["", "code", "---", "-m", "timeit"],
@@ -63,7 +63,7 @@ class EntrypointTests(unittest.TestCase):
@patch("sys.argv", ["", "import sys; sys.exit(22)"])
def test_main_exits_with_returncode(self):
- """Should exit with the subprocess's returncode if it's non-zero."""
+ """Should exit with the subprocess returncode if it's non-zero."""
with self.assertRaises(SystemExit) as cm:
snekbox_main.main()