MCPcopy
hub / github.com/treeverse/dvc / test_import

Method test_import

dvc/testing/workspace_tests.py:14–19  ·  view source on GitHub ↗
(self, tmp_dir, dvc, workspace)

Source from the content-addressed store, hash-verified

12
13class TestImport:
14 def test_import(self, tmp_dir, dvc, workspace):
15 workspace.gen("file", "file")
16 assert not (tmp_dir / "file").exists() # sanity check
17 dvc.imp_url("remote://workspace/file")
18 assert (tmp_dir / "file").read_text() == "file"
19 assert dvc.status() == {}
20
21 @pytest.fixture
22 def stage_md5(self):

Callers

nothing calls this directly

Calls 4

genMethod · 0.45
existsMethod · 0.45
read_textMethod · 0.45
statusMethod · 0.45

Tested by

no test coverage detected