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

Function run_head

tests/dir_helpers.py:61–74  ·  view source on GitHub ↗
(tmp_dir, head_script, dvc)

Source from the content-addressed store, hash-verified

59
60@pytest.fixture
61def run_head(tmp_dir, head_script, dvc):
62 script = os.path.abspath(tmp_dir / "head.py")
63
64 def run(*args, **run_kwargs):
65 return dvc.run(
66 **{
67 "cmd": "python {} {}".format(script, " ".join(args)),
68 "outs": [dep + "-1" for dep in args],
69 "deps": list(args),
70 **run_kwargs,
71 }
72 )
73
74 return run
75
76
77@pytest.fixture

Calls 1

abspathMethod · 0.80