aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2021-12-21 10:43:53 -0800
committerGravatar MarkKoz <[email protected]>2021-12-21 10:43:53 -0800
commit41eb7a35f277e391c32253c126549fbbdca1d4dd (patch)
treef17bfbbfc3472832a69d9188c2ca747ab4213b54
parentInstall numpy before running tests locally (diff)
Set NsJail log level to warning during API tests
-rw-r--r--tests/api/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/api/__init__.py b/tests/api/__init__.py
index dcee5b5..a900316 100644
--- a/tests/api/__init__.py
+++ b/tests/api/__init__.py
@@ -1,3 +1,4 @@
+import logging
from subprocess import CompletedProcess
from unittest import mock
@@ -20,4 +21,6 @@ class SnekAPITestCase(testing.TestCase):
)
self.addCleanup(self.patcher.stop)
+ logging.getLogger("snekbox.nsjail").setLevel(logging.WARNING)
+
self.app = SnekAPI()