Skip to content

Commit

Permalink
add test for missing folder in ls
Browse files Browse the repository at this point in the history
  • Loading branch information
d70-t committed Sep 19, 2024
1 parent e8ab936 commit 37aa092
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/test_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,13 @@ async def test_ls(fs):
assert all([r["size"] == len(REF_CONTENT) for r in res])


@pytest.mark.parametrize("detail", [False, True])
@pytest.mark.asyncio
async def test_ls_missing(fs, detail):
with pytest.raises(FileNotFoundError):
await fs._ls(TEST_ROOT + "/missing", detail=detail)


@pytest.mark.asyncio
async def test_glob(fs):
res = await fs._glob(TEST_ROOT + "/w*")
Expand Down

0 comments on commit 37aa092

Please sign in to comment.