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

Function test_directory

sdk/python/tests/client/test_integration.py:133–142  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

131
132
133async def test_directory():
134 dir_ = (
135 dag.directory()
136 .with_new_file("hello.txt", "Hello, world!")
137 .with_new_file("goodbye.txt", "Goodbye, world!")
138 )
139
140 entries = await dir_.entries()
141
142 assert entries == ["goodbye.txt", "hello.txt"]
143
144
145async def test_host_directory():

Callers

nothing calls this directly

Calls 3

with_new_fileMethod · 0.45
directoryMethod · 0.45
entriesMethod · 0.45

Tested by

no test coverage detected