fuse_mntdir = PosixPath('/tmp/tmp0wg4ljl2.swh-fuse-test')
def test_target_type(fuse_mntdir):
file_path = fuse_mntdir / "archive" / ROOT_REL / "target_type"
> assert file_path.read_text() == "revision\n"
.tox/py3/lib/python3.7/site-packages/swh/fuse/tests/test_release.py:41:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
/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/tmp0wg4ljl2.swh-fuse-test/archive/swh:1:rel:874f7cbe352033cac5a8bc889847da2fe1d13e9f/target_type')
name = '/tmp/tmp0wg4ljl2.swh-fuse-test/archive/swh:1:rel:874f7cbe352033cac5a8bc889847da2fe1d13e9f/target_type'
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/tmp0wg4ljl2.swh-fuse-test/archive/swh:1:rel:874f7cbe352033cac5a8bc889847da2fe1d13e9f/target_type'
/usr/lib/python3.7/pathlib.py:1039: FileNotFoundError
TEST RESULT
TEST RESULT
- Run At
- Nov 25 2020, 3:51 PM