Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F8391597
test_directory.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
382 B
Subscribers
None
test_directory.py
View Options
import
json
from
os
import
listdir
from
pathlib
import
Path
from
.api_data
import
MOCK_ARCHIVE
,
ROOT_SWHID
,
ROOT_URL
def
test_ls_root_swhid
(
fuse_mntdir
):
root_resp
=
json
.
loads
(
MOCK_ARCHIVE
[
ROOT_URL
])
expected
=
[
entry
[
"name"
]
for
entry
in
root_resp
]
swhid_dir
=
Path
(
fuse_mntdir
,
"archive"
,
ROOT_SWHID
)
actual
=
listdir
(
swhid_dir
)
assert
actual
==
expected
File Metadata
Details
Attached
Mime Type
text/x-python
Expires
Jun 4 2025, 6:47 PM (14 w, 1 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3289948
Attached To
rDFUSE FUSE virtual file system
Event Timeline
Log In to Comment