Skip to content

Commit

Permalink
added test to confirm gui kwargs are passed to fs
Browse files Browse the repository at this point in the history
  • Loading branch information
okz committed Sep 12, 2023
1 parent 11499f6 commit 4ca4515
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions fsspec/tests/test_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,13 @@ def test_basic():

gui = fsspec.gui.FileSelector()
assert "url" in str(gui.panel)


def test_kwargs(tmpdir):
""" confirm kwargs are passed to the filesystem instance"""
import fsspec.gui

gui = fsspec.gui.FileSelector(f"file://{tmpdir}",
kwargs="{'auto_mkdir': True}")

assert gui.fs.auto_mkdir

0 comments on commit 4ca4515

Please sign in to comment.