Skip to content

Commit e6e2b2e

Browse files
committed
test_ls: create dir
mkdir in GDriveFileSystem is a noop.
1 parent c1a8428 commit e6e2b2e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: pydrive2/test/test_fs.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -116,9 +116,11 @@ def test_rm(fs, remote_dir):
116116
assert not fs.exists(remote_dir + "/dir/c/a")
117117

118118

119-
def test_ls(fs, remote_dir):
120-
fs.mkdir(remote_dir + "dir/")
119+
def test_ls(fs: GDriveFileSystem, remote_dir):
120+
_, base = fs.split_path(remote_dir + "dir/")
121+
fs._path_to_item_ids(base, create=True)
121122
assert fs.ls(remote_dir + "dir/") == []
123+
122124
files = set()
123125
for no in range(8):
124126
file = remote_dir + f"dir/test_{no}"

0 commit comments

Comments
 (0)