fuse_mntdir = PosixPath('/tmp/tmpl_6yo3hw.swh-fuse-test')
def test_access_cnt_target(fuse_mntdir):
target_path = fuse_mntdir / "archive" / REL_TARGET_CNT / "target"
expected = get_data_from_web_archive(TARGET_CNT, raw=True)
> assert target_path.read_text() == expected
.tox/py3/lib/python3.7/site-packages/swh/fuse/tests/test_release.py:36:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/usr/lib/python3.7/pathlib.py:1199: in read_text
with self.open(mode='r', encoding=encoding, errors=errors) as f:
/usr/lib/python3.7/pathlib.py:1186: in open
opener=self._opener)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = PosixPath('/tmp/tmpl_6yo3hw.swh-fuse-test/archive/swh:1:rel:da5f9898d6248ab26277116f54aca855338401d2/target')
name = '/tmp/tmpl_6yo3hw.swh-fuse-test/archive/swh:1:rel:da5f9898d6248ab26277116f54aca855338401d2/target'
flags = 524288, mode = 438
def _opener(self, name, flags, mode=0o666):
# A stub for the opener argument to built-in open()
> return self._accessor.open(self, flags, mode)
E FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpl_6yo3hw.swh-fuse-test/archive/swh:1:rel:da5f9898d6248ab26277116f54aca855338401d2/target'
/usr/lib/python3.7/pathlib.py:1039: FileNotFoundError
TEST RESULT
TEST RESULT
- Run At
- Nov 25 2020, 3:51 PM