fuse_mntdir = PosixPath('/tmp/tmprlbs3kdm.swh-fuse-test')
def test_cat_file(fuse_mntdir):
file_path = fuse_mntdir / "archive" / REGULAR_FILE
expected = get_data_from_web_archive(REGULAR_FILE, raw=True)
> assert file_path.read_text() == expected
.tox/py3/lib/python3.7/site-packages/swh/fuse/tests/test_content.py:13:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/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/tmprlbs3kdm.swh-fuse-test/archive/swh:1:cnt:61d3c9e1157203f0c4ed5165608d92294eaca808')
name = '/tmp/tmprlbs3kdm.swh-fuse-test/archive/swh:1:cnt:61d3c9e1157203f0c4ed5165608d92294eaca808'
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/tmprlbs3kdm.swh-fuse-test/archive/swh:1:cnt:61d3c9e1157203f0c4ed5165608d92294eaca808'
/usr/lib/python3.7/pathlib.py:1039: FileNotFoundError
TEST RESULT
TEST RESULT
- Run At
- Nov 25 2020, 3:51 PM