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

Fixed stdin IO lock

parent 74c88f4e
No related branches found
No related tags found
1 merge request!45Added support for MCO named parameters.
......@@ -3,6 +3,8 @@ import subprocess
import os
from contextlib import contextmanager
from six import StringIO
from force_bdss.tests import fixtures
......@@ -30,9 +32,14 @@ class TestExecution(unittest.TestCase):
def test_plain_invocation_evaluate(self):
with cd(fixtures.dirpath()):
out = subprocess.check_call([
"force_bdss", "--evaluate", "test_csv.json"])
self.assertEqual(out, 0)
input = StringIO()
proc = subprocess.Popen([
"force_bdss", "--evaluate", "test_csv.json"],
stdin=subprocess.PIPE,
stdout=subprocess.PIPE)
proc.communicate(b"1")
retcode = proc.wait(5)
self.assertEqual(retcode, 0)
def test_unsupported_file_input(self):
with cd(fixtures.dirpath()):
......
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