Skip to content

Commit

Permalink
test_ls: create dir
Browse files Browse the repository at this point in the history
mkdir in GDriveFileSystem is a noop.
  • Loading branch information
skshetry committed Jun 22, 2023
1 parent 5563128 commit 8181bc6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pydrive2/test/test_fs.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,11 @@ def test_rm(fs, remote_dir):
assert not fs.exists(remote_dir + "/dir/c/a")


def test_ls(fs, remote_dir):
fs.mkdir(remote_dir + "dir/")
def test_ls(fs: GDriveFileSystem, remote_dir):
_, base = fs.split_path(remote_dir + "dir/")
fs._path_to_item_ids(base, create=True)
assert fs.ls(remote_dir + "dir/") == []

files = set()
for no in range(8):
file = remote_dir + f"dir/test_{no}"
Expand Down

0 comments on commit 8181bc6

Please sign in to comment.