File tree 1 file changed +10
-3
lines changed
fsspec/implementations/tests 1 file changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -130,9 +130,16 @@ def make_mock_diabetes_ds():
130
130
131
131
@pytest .mark .vcr ()
132
132
def test_dbfs_listing (dbfsFS ):
133
- dbfsFS .mkdir ("/FileStore/fsspec_dbfs/project_root/empty_dir" , create_parents = True , exist_ok = True )
134
- assert {'name' : '/FileStore/fsspec_dbfs/project_root' , 'size' : 0 , 'type' : 'directory' } in \
135
- dbfsFS .ls ("/FileStore/fsspec_dbfs" , detail = True )
133
+ dbfsFS .mkdir (
134
+ "/FileStore/fsspec_dbfs/project_root/empty_dir" ,
135
+ create_parents = True ,
136
+ exist_ok = True ,
137
+ )
138
+ assert {
139
+ "name" : "/FileStore/fsspec_dbfs/project_root" ,
140
+ "size" : 0 ,
141
+ "type" : "directory" ,
142
+ } in dbfsFS .ls ("/FileStore/fsspec_dbfs" , detail = True )
136
143
assert dbfsFS .ls ("/FileStore/fsspec_dbfs/project_root/empty_dir" , detail = True ) == []
137
144
# Test that FileNotFoundError is raised when listing a missing directory
138
145
with pytest .raises (FileNotFoundError ):
You can’t perform that action at this time.
0 commit comments