From 4ca45159dcd52199821f8fa4f6f50ff4a43b4194 Mon Sep 17 00:00:00 2001 From: ozgun karagil Date: Tue, 12 Sep 2023 21:28:22 +0000 Subject: [PATCH] added test to confirm gui kwargs are passed to fs --- fsspec/tests/test_gui.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/fsspec/tests/test_gui.py b/fsspec/tests/test_gui.py index f94433331..4992bfc2c 100644 --- a/fsspec/tests/test_gui.py +++ b/fsspec/tests/test_gui.py @@ -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