()
| 208 | |
| 209 | |
| 210 | async 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 | |
| 224 | async def test_return_list_of_objects(alpine_image: str): |
nothing calls this directly
no test coverage detected