(path: trio.Path)
| 237 | |
| 238 | |
| 239 | async def test_iterdir(path: trio.Path) -> None: |
| 240 | # Populate a directory |
| 241 | await path.mkdir() |
| 242 | await (path / "foo").mkdir() |
| 243 | await (path / "bar.txt").write_bytes(b"") |
| 244 | |
| 245 | entries = set() |
| 246 | for entry in await path.iterdir(): |
| 247 | assert isinstance(entry, trio.Path) |
| 248 | entries.add(entry.name) |
| 249 | |
| 250 | assert entries == {"bar.txt", "foo"} |
| 251 | |
| 252 | |
| 253 | async def test_classmethods() -> None: |
nothing calls this directly
no test coverage detected
searching dependent graphs…