mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
system: change System class to a dvc.fs.system module
This commit is contained in:
committed by
Ruslan Kuprieiev
parent
4d6df989f2
commit
b4faa5616f
@@ -4,7 +4,7 @@ import pytest
|
||||
|
||||
from dvc.cli import main
|
||||
from dvc.exceptions import DvcException
|
||||
from dvc.fs.system import System
|
||||
from dvc.fs import system
|
||||
from dvc.stage.exceptions import StageFileDoesNotExistError
|
||||
from dvc.utils.fs import remove
|
||||
from tests.utils import get_gitignore_content
|
||||
@@ -45,7 +45,7 @@ def test_remove_broken_symlink(tmp_dir, dvc):
|
||||
|
||||
(stage,) = dvc.add("foo")
|
||||
remove(dvc.odb.local.cache_dir)
|
||||
assert System.is_symlink("foo")
|
||||
assert system.is_symlink("foo")
|
||||
|
||||
with pytest.raises(DvcException):
|
||||
dvc.remove(stage.addressing)
|
||||
|
||||
Reference in New Issue
Block a user