Skip to content

Commit 0dfb50e

Browse files
test smb connection cache
1 parent 49e6189 commit 0dfb50e

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

fsspec/implementations/tests/test_smb.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Test SMBFileSystem class using a docker container
33
"""
44

5+
import copy
56
import logging
67
import os
78
import shlex
@@ -94,6 +95,13 @@ def test_simple(smb_params):
9495
fsmb.rm(adir, recursive=True)
9596
assert not fsmb.exists(adir)
9697

98+
# test with a second SMB FS object wo using the password
99+
smb_params_wopassword = copy.deepcopy(**smb_params)
100+
del smb_params_wopassword["password"]
101+
fsmb.mkdirs("/home/adir/justanotherdir/")
102+
103+
104+
97105

98106
@pytest.mark.flaky(max_runs=3, rerun_filter=delay_rerun)
99107
def test_auto_mkdir(smb_params):

0 commit comments

Comments
 (0)