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

Function test_no_commits

tests/func/test_diff.py:373–380  ·  view source on GitHub ↗
(tmp_dir)

Source from the content-addressed store, hash-verified

371
372
373def test_no_commits(tmp_dir):
374 from dvc.repo import Repo
375 from dvc.scm import Git
376
377 git = Git.init(tmp_dir.fs_path)
378 assert git.no_commits
379
380 assert Repo.init().diff() == {}
381
382
383def test_abs_target(tmp_dir, scm, dvc):

Callers

nothing calls this directly

Calls 2

initMethod · 0.45
diffMethod · 0.45

Tested by

no test coverage detected