Skip to content

Commit

Permalink
Altering test_storage
Browse files Browse the repository at this point in the history
  • Loading branch information
seboceanum committed Jan 21, 2025
1 parent 5abe54f commit a4b59f2
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions tests/test_storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,15 @@ def test_ls(fs, dummy_files):
assert len(files) == 1
assert files[0]["type"] == "directory"

paths = list(fs.walk(REMOTE_PATH))
assert len(paths) == 2

# As the bucket tends to contain many things
# just make sure that the expected folder contains
# the expected file. Shows ls gives us those files
found = False
for p in _fs.walk(REMOTE_PATH):
if p[0] == 'test_storage/test':
found = ("file1.txt" in p[-1]) and ("file2.txt" in p[-1])
break
assert found

def test_get(fs, dummy_files):
fs.mkdirs(REMOTE_PATH, exist_ok=True)
Expand Down

0 comments on commit a4b59f2

Please sign in to comment.