MCPcopy Create free account
hub / github.com/dagger/dagger / test_container

Function test_container

sdk/python/tests/client/test_integration.py:24–28  ·  view source on GitHub ↗
(alpine_image: str, alpine_version: str)

Source from the content-addressed store, hash-verified

22
23
24async def test_container(alpine_image: str, alpine_version: str):
25 alpine = dag.container().from_(alpine_image)
26 version = await alpine.with_exec(["cat", "/etc/alpine-release"]).stdout()
27
28 assert version == f"{alpine_version}\n"
29
30
31async def test_git_repository():

Callers

nothing calls this directly

Calls 4

from_Method · 0.80
containerMethod · 0.45
stdoutMethod · 0.45
with_execMethod · 0.45

Tested by

no test coverage detected