Skip to content
Snippets Groups Projects
Commit 79de86ab authored by Stefano Borini's avatar Stefano Borini
Browse files

Silenced tests

parent 2fa5d1b9
No related branches found
No related tags found
1 merge request!111Added more logging
...@@ -26,16 +26,19 @@ class TestExecution(unittest.TestCase): ...@@ -26,16 +26,19 @@ class TestExecution(unittest.TestCase):
def test_plain_invocation_mco(self): def test_plain_invocation_mco(self):
with cd(fixtures.dirpath()): with cd(fixtures.dirpath()):
try: try:
subprocess.check_output(["force_bdss", "test_empty.json"]) subprocess.check_output(["force_bdss", "test_empty.json"],
stderr=subprocess.STDOUT)
except subprocess.CalledProcessError: except subprocess.CalledProcessError:
self.fail("force_bdss returned error at plain invocation.") self.fail("force_bdss returned error at plain invocation.")
def test_plain_invocation_evaluate(self): def test_plain_invocation_evaluate(self):
with cd(fixtures.dirpath()): with cd(fixtures.dirpath()), \
open(os.devnull, "wb") as devnull:
proc = subprocess.Popen([ proc = subprocess.Popen([
"force_bdss", "--evaluate", "test_empty.json"], "force_bdss", "--evaluate", "test_empty.json"],
stdin=subprocess.PIPE, stdin=subprocess.PIPE,
stdout=subprocess.PIPE) stdout=subprocess.PIPE,
stderr=devnull)
proc.communicate(b"1") proc.communicate(b"1")
retcode = proc.wait() retcode = proc.wait()
self.assertEqual(retcode, 0) self.assertEqual(retcode, 0)
......
...@@ -14,6 +14,7 @@ CORE_EVALUATION_DRIVER_ID = plugin_id("core", "CoreEvaluationDriver") ...@@ -14,6 +14,7 @@ CORE_EVALUATION_DRIVER_ID = plugin_id("core", "CoreEvaluationDriver")
log = logging.getLogger(__name__) log = logging.getLogger(__name__)
class CoreEvaluationDriver(BaseCoreDriver): class CoreEvaluationDriver(BaseCoreDriver):
"""Main plugin that handles the execution of the MCO """Main plugin that handles the execution of the MCO
or the evaluation. or the evaluation.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment