Skip to content

Commit

Permalink
add a small test
Browse files Browse the repository at this point in the history
  • Loading branch information
keewis committed Jul 4, 2023
1 parent 32078b0 commit c068f04
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions fsspec/tests/test_mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,11 @@ def test_fsmap_access_with_suffix(tmp_path):
_ = m["b/"]

assert m["b/a/"] == b"data"


def test_fsmap_dirfs():
m = fsspec.get_mapper("memory://")

fs = m.dirfs
assert isinstance(fs, fsspec.implementations.dirfs.DirFileSystem)
assert fs.path == m.root

0 comments on commit c068f04

Please sign in to comment.