diff options
author | 2022-11-16 19:18:02 -0500 | |
---|---|---|
committer | 2022-11-16 19:18:02 -0500 | |
commit | 8dddd105182a42ee8e76b02f7abed1e19a299b2d (patch) | |
tree | 506199998c03c2436f0a2d2bf4ca34c1a53172bf /tests/api | |
parent | Support `-m` calls to default to no file (diff) |
Fixed unit tests
Diffstat (limited to 'tests/api')
-rw-r--r-- | tests/api/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/api/__init__.py b/tests/api/__init__.py index 0e6e422..5f20faf 100644 --- a/tests/api/__init__.py +++ b/tests/api/__init__.py @@ -1,10 +1,10 @@ import logging -from subprocess import CompletedProcess from unittest import mock from falcon import testing from snekbox.api import SnekAPI +from snekbox.process import EvalResult class SnekAPITestCase(testing.TestCase): @@ -13,7 +13,7 @@ class SnekAPITestCase(testing.TestCase): self.patcher = mock.patch("snekbox.api.snekapi.NsJail", autospec=True) self.mock_nsjail = self.patcher.start() - self.mock_nsjail.return_value.python3.return_value = CompletedProcess( + self.mock_nsjail.return_value.python3.return_value = EvalResult( args=[], returncode=0, stdout="output", stderr="error" ) self.addCleanup(self.patcher.stop) |