Skip to content

Commit 1e85844

Browse files
committed
add tests
1 parent 66ee7d8 commit 1e85844

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

fsspec/tests/test_spec.py

+8
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,14 @@ def test_find_details():
232232
assert details[filename] == test_fs.info(filename)
233233

234234

235+
def test_find_file():
236+
test_fs = DummyTestFS()
237+
238+
filename = "misc/foo.txt"
239+
assert test_fs.find(filename) == [filename]
240+
assert test_fs.find(filename, detail=True) == {filename: {}}
241+
242+
235243
def test_cache():
236244
fs = DummyTestFS()
237245
fs2 = DummyTestFS()

0 commit comments

Comments
 (0)