From 41eb7a35f277e391c32253c126549fbbdca1d4dd Mon Sep 17 00:00:00 2001 From: MarkKoz Date: Tue, 21 Dec 2021 10:43:53 -0800 Subject: Set NsJail log level to warning during API tests --- tests/api/__init__.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests/api') 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() -- cgit v1.2.3