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

Function test_directory_sync

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

Source from the content-addressed store, hash-verified

208
209
210async def test_directory_sync():
211 # This feature is tested in core, we're just testing if
212 # sync in different types work.
213 base = dag.directory().with_new_file("foo", "bar")
214
215 # short cirtcut
216 with pytest.raises(dagger.QueryError, match="no such file or directory"):
217 await base.directory("foobar").sync()
218
219 # chaining
220 entries = await (await base.sync()).entries()
221 assert entries == ["foo"]
222
223
224async def test_return_list_of_objects(alpine_image: str):

Callers

nothing calls this directly

Calls 4

syncMethod · 0.65
with_new_fileMethod · 0.45
directoryMethod · 0.45
entriesMethod · 0.45

Tested by

no test coverage detected