dvc.fs: move fs to dvc.objects.fs

Some of the APIs/FileSystems are reimported inside dvc.fs module.
This commit is contained in:
Saugat Pachhai (सौगात)
2022-05-16 13:15:19 +03:00
committed by Ruslan Kuprieiev
parent b8e770747f
commit 570e3a5359
95 changed files with 552 additions and 521 deletions
+2 -2
View File
@@ -180,7 +180,7 @@ def test_default_cache_type(dvc):
@pytest.mark.skipif(os.name == "nt", reason="Not supported for Windows.")
@pytest.mark.parametrize("group", [False, True])
def test_shared_cache(tmp_dir, dvc, group):
from dvc.fs.system import umask
from dvc.fs import system
if group:
with dvc.config.edit() as conf:
@@ -201,7 +201,7 @@ def test_shared_cache(tmp_dir, dvc, group):
actual[path] = oct(stat.S_IMODE(os.stat(path).st_mode))
file_mode = oct(0o444)
dir_mode = oct(0o2775 if group else (0o777 & ~umask))
dir_mode = oct(0o2775 if group else (0o777 & ~system.umask))
expected = {
os.path.join(cache_dir, "17"): dir_mode,