Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry committed Jun 21, 2021
1 parent 66ee7d8 commit 1e85844
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fsspec/tests/test_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,14 @@ def test_find_details():
assert details[filename] == test_fs.info(filename)


def test_find_file():
test_fs = DummyTestFS()

filename = "misc/foo.txt"
assert test_fs.find(filename) == [filename]
assert test_fs.find(filename, detail=True) == {filename: {}}


def test_cache():
fs = DummyTestFS()
fs2 = DummyTestFS()
Expand Down

0 comments on commit 1e85844

Please sign in to comment.