fuse_mntdir = PosixPath('/tmp/tmp2cnr9crm.swh-fuse-test')
def test_list_dir(fuse_mntdir):
dir_path = fuse_mntdir / "archive" / ROOT_DIR
> check_dir_name_entries(dir_path, ROOT_DIR)
.tox/py3/lib/python3.7/site-packages/swh/fuse/tests/test_directory.py:9:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
dir_path = PosixPath('/tmp/tmp2cnr9crm.swh-fuse-test/archive/swh:1:dir:c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578')
dir_swhid = 'swh:1:dir:c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578'
def check_dir_name_entries(dir_path: Path, dir_swhid: str) -> None:
expected = get_dir_name_entries(dir_swhid)
> actual = os.listdir(dir_path)
E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmp2cnr9crm.swh-fuse-test/archive/swh:1:dir:c6dcbe9711ea6d5a31429a833a3d0c59cbbb2578'
.tox/py3/lib/python3.7/site-packages/swh/fuse/tests/common.py:44: FileNotFoundError
TEST RESULT
TEST RESULT
- Run At
- Nov 25 2020, 3:51 PM