File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from concore_cli .commands .build import _write_docker_compose
22from rich .console import Console
33from pathlib import Path
4- import pytest
54
65def _fake_run_script (output_dir , services ):
76 lines = [
@@ -52,13 +51,13 @@ def test_compose_first_service_has_no_depends_on(tmp_path):
5251 path = _write_docker_compose (tmp_path , Console (quiet = True ))
5352 lines = path .read_text ().splitlines ()
5453 controller_idx = next (
55- i for i , l in enumerate (lines ) if "controller:" in l
54+ i for i , line in enumerate (lines ) if "controller:" in line
5655 )
5756 plant_idx = next (
58- i for i , l in enumerate (lines ) if "plant:" in l
57+ i for i , line in enumerate (lines ) if "plant:" in line
5958 )
6059 section = lines [controller_idx :plant_idx ]
61- assert not any ("depends_on" in l for l in section )
60+ assert not any ("depends_on" in line for line in section )
6261
6362
6463def test_zmq_mode_adds_env (tmp_path ):
You can’t perform that action at this time.
0 commit comments