From 79de86ab201b503589112732c4266e2cec9add9a Mon Sep 17 00:00:00 2001
From: Stefano Borini <sborini@enthought.com>
Date: Tue, 24 Apr 2018 16:53:08 +0100
Subject: [PATCH] Silenced tests

---
 force_bdss/cli/tests/test_execution.py | 9 ++++++---
 force_bdss/core_evaluation_driver.py   | 1 +
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/force_bdss/cli/tests/test_execution.py b/force_bdss/cli/tests/test_execution.py
index 1311a92..3202bee 100644
--- a/force_bdss/cli/tests/test_execution.py
+++ b/force_bdss/cli/tests/test_execution.py
@@ -26,16 +26,19 @@ class TestExecution(unittest.TestCase):
     def test_plain_invocation_mco(self):
         with cd(fixtures.dirpath()):
             try:
-                subprocess.check_output(["force_bdss", "test_empty.json"])
+                subprocess.check_output(["force_bdss", "test_empty.json"],
+                                        stderr=subprocess.STDOUT)
             except subprocess.CalledProcessError:
                 self.fail("force_bdss returned error at plain invocation.")
 
     def test_plain_invocation_evaluate(self):
-        with cd(fixtures.dirpath()):
+        with cd(fixtures.dirpath()), \
+                open(os.devnull, "wb") as devnull:
             proc = subprocess.Popen([
                 "force_bdss", "--evaluate", "test_empty.json"],
                 stdin=subprocess.PIPE,
-                stdout=subprocess.PIPE)
+                stdout=subprocess.PIPE,
+                stderr=devnull)
             proc.communicate(b"1")
             retcode = proc.wait()
             self.assertEqual(retcode, 0)
diff --git a/force_bdss/core_evaluation_driver.py b/force_bdss/core_evaluation_driver.py
index 2657f35..96a7173 100644
--- a/force_bdss/core_evaluation_driver.py
+++ b/force_bdss/core_evaluation_driver.py
@@ -14,6 +14,7 @@ CORE_EVALUATION_DRIVER_ID = plugin_id("core", "CoreEvaluationDriver")
 
 log = logging.getLogger(__name__)
 
+
 class CoreEvaluationDriver(BaseCoreDriver):
     """Main plugin that handles the execution of the MCO
     or the evaluation.
-- 
GitLab