Skip to content

Commit d0b74c0

Browse files
authored
Fix entrypoint usage in broken container tests to unblock CI (#1005)
* Add news fragment * Use list[str] for entrypoint in container config tests
1 parent ef0c18c commit d0b74c0

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

CHANGES/1004.bugfix

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix entrypoint usage in broken container tests to unblock CI.

tests/test_containers.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ async def test_run_existing_container(docker: Docker, image_name: str) -> None:
3030
container = await docker.containers.run(
3131
config={
3232
"Cmd": ["-c", "print('hello')"],
33-
"Entrypoint": "python",
33+
"Entrypoint": ["python"],
3434
"Image": image_name,
3535
}
3636
)
@@ -56,7 +56,7 @@ async def test_run_container_with_missing_image(
5656
container = await docker.containers.run(
5757
config={
5858
"Cmd": ["-c", "print('hello')"],
59-
"Entrypoint": "python",
59+
"Entrypoint": ["python"],
6060
"Image": image_name,
6161
}
6262
)
@@ -125,7 +125,7 @@ async def test_container_stats_list(docker: Docker, image_name: str) -> None:
125125
container = await docker.containers.run(
126126
config={
127127
"Cmd": ["-c", "print('hello')"],
128-
"Entrypoint": "python",
128+
"Entrypoint": ["python"],
129129
"Image": image_name,
130130
}
131131
)
@@ -145,7 +145,7 @@ async def test_container_stats_stream(docker: Docker, image_name: str) -> None:
145145
container = await docker.containers.run(
146146
config={
147147
"Cmd": ["-c", "print('hello')"],
148-
"Entrypoint": "python",
148+
"Entrypoint": ["python"],
149149
"Image": image_name,
150150
}
151151
)

0 commit comments

Comments
 (0)