Skip to content

Commit 37aa092

Browse files
committed
add test for missing folder in ls
1 parent e8ab936 commit 37aa092

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/test_async.py

+7
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,13 @@ async def test_ls(fs):
6161
assert all([r["size"] == len(REF_CONTENT) for r in res])
6262

6363

64+
@pytest.mark.parametrize("detail", [False, True])
65+
@pytest.mark.asyncio
66+
async def test_ls_missing(fs, detail):
67+
with pytest.raises(FileNotFoundError):
68+
await fs._ls(TEST_ROOT + "/missing", detail=detail)
69+
70+
6471
@pytest.mark.asyncio
6572
async def test_glob(fs):
6673
res = await fs._glob(TEST_ROOT + "/w*")

0 commit comments

Comments
 (0)