From c54bde25dd57a5a092bb8c8c677cf85c4fa043fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Saugat=20Pachhai=20=28=E0=A4=B8=E0=A5=8C=E0=A4=97=E0=A4=BE?= =?UTF-8?q?=E0=A4=A4=29?= Date: Wed, 23 Aug 2023 18:37:26 +0545 Subject: [PATCH] tests: fix test add a leading slash to path in test to make it consistent with `odb.path` --- dvc_hdfs/tests/fixtures.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dvc_hdfs/tests/fixtures.py b/dvc_hdfs/tests/fixtures.py index a5e8f72..fe0e92c 100644 --- a/dvc_hdfs/tests/fixtures.py +++ b/dvc_hdfs/tests/fixtures.py @@ -215,7 +215,7 @@ def _adjust_entry(self, entry): mocked_path = os.path.relpath(entry.path, self._root) mocked_parts = mocked_path.split(os.path.sep) return FileInfo( - path=posixpath.join(*mocked_parts), + path=posixpath.join("/", *mocked_parts), type=entry.type, mtime=entry.mtime, size=entry.size,