@@ -51,30 +51,22 @@ def test_compose_first_service_has_no_depends_on(tmp_path):
5151 )
5252 path = _write_docker_compose (tmp_path , Console (quiet = True ))
5353 lines = path .read_text ().splitlines ()
54- controller_idx = next (
55- i for i , line in enumerate (lines ) if "controller:" in line
56- )
57- plant_idx = next (
58- i for i , line in enumerate (lines ) if "plant:" in line
59- )
54+ controller_idx = next (i for i , line in enumerate (lines ) if "controller:" in line )
55+ plant_idx = next (i for i , line in enumerate (lines ) if "plant:" in line )
6056 section = lines [controller_idx :plant_idx ]
6157 assert not any ("depends_on" in line for line in section )
6258
6359
6460def test_zmq_mode_adds_env (tmp_path ):
6561 _fake_run_script (tmp_path , [{"name" : "node1" , "image" : "concore/py" }])
66- path = _write_docker_compose (
67- tmp_path , Console (quiet = True ), zmq_mode = True
68- )
62+ path = _write_docker_compose (tmp_path , Console (quiet = True ), zmq_mode = True )
6963 content = path .read_text ()
7064 assert "CONCORE_TRANSPORT=zmq" in content
7165
7266
7367def test_no_zmq_env_in_default_mode (tmp_path ):
7468 _fake_run_script (tmp_path , [{"name" : "node1" , "image" : "concore/py" }])
75- path = _write_docker_compose (
76- tmp_path , Console (quiet = True ), zmq_mode = False
77- )
69+ path = _write_docker_compose (tmp_path , Console (quiet = True ), zmq_mode = False )
7870 content = path .read_text ()
7971 assert "CONCORE_TRANSPORT" not in content
8072
@@ -87,6 +79,7 @@ def test_missing_run_script_returns_none(tmp_path):
8779def test_zmq_without_compose_errors ():
8880 from click .testing import CliRunner
8981 from concore_cli .cli import cli
82+
9083 runner = CliRunner ()
9184 result = runner .invoke (cli , ["build" , "wf.graphml" , "--zmq" ])
9285 assert result .exit_code != 0
0 commit comments