@@ -49,7 +49,7 @@ def test_docker_services() -> None:
4949 # Both should have been called.
5050 assert check_output .call_args_list == [
5151 mock .call (
52- 'docker compose -f "docker-compose.yml" -p "pytest123" up --build -d ' ,
52+ 'docker compose -f "docker-compose.yml" -p "pytest123" up --build --wait ' ,
5353 stderr = subprocess .STDOUT ,
5454 shell = True ,
5555 ),
@@ -100,7 +100,7 @@ def test_docker_services_unused_port() -> None:
100100 assert check_output .call_args_list == [
101101 mock .call (
102102 'docker compose -f "docker-compose.yml" -p "pytest123" '
103- " up --build -d" , # pylint: disable:=implicit-str-concat
103+ ' up --build --wait' , # pylint: disable:=implicit-str-concat
104104 shell = True ,
105105 stderr = subprocess .STDOUT ,
106106 ),
@@ -147,7 +147,7 @@ def test_docker_services_failure() -> None:
147147 assert check_output .call_args_list == [
148148 mock .call (
149149 'docker compose -f "docker-compose.yml" -p "pytest123" '
150- "up --build -d " , # pylint: disable:=implicit-str-concat
150+ "up --build --wait " , # pylint: disable:=implicit-str-concat
151151 shell = True ,
152152 stderr = subprocess .STDOUT ,
153153 )
@@ -188,7 +188,7 @@ def test_single_commands() -> None:
188188 "docker compose" ,
189189 "docker-compose.yml" ,
190190 docker_compose_project_name = "pytest123" ,
191- docker_setup = "up --build -d " ,
191+ docker_setup = "up --build --wait " ,
192192 docker_cleanup = "down -v" ,
193193 ) as services :
194194 assert isinstance (services , Services )
@@ -212,7 +212,7 @@ def test_single_commands() -> None:
212212 # Both should have been called.
213213 assert check_output .call_args_list == [
214214 mock .call (
215- 'docker compose -f "docker-compose.yml" -p "pytest123" up --build -d ' ,
215+ 'docker compose -f "docker-compose.yml" -p "pytest123" up --build --wait ' ,
216216 stderr = subprocess .STDOUT ,
217217 shell = True ,
218218 ),
@@ -242,7 +242,7 @@ def test_multiple_commands() -> None:
242242 "docker compose" ,
243243 "docker-compose.yml" ,
244244 docker_compose_project_name = "pytest123" ,
245- docker_setup = ["ps" , "up --build -d " ],
245+ docker_setup = ["ps" , "up --build --wait " ],
246246 docker_cleanup = ["down -v" , "ps" ],
247247 ) as services :
248248 assert isinstance (services , Services )
@@ -271,7 +271,7 @@ def test_multiple_commands() -> None:
271271 shell = True ,
272272 ),
273273 mock .call (
274- 'docker compose -f "docker-compose.yml" -p "pytest123" up --build -d ' ,
274+ 'docker compose -f "docker-compose.yml" -p "pytest123" up --build --wait ' ,
275275 stderr = subprocess .STDOUT ,
276276 shell = True ,
277277 ),
0 commit comments