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

Function assert_eq_lockfile

tests/func/test_lockfile.py:26–31  ·  view source on GitHub ↗
(previous, new)

Source from the content-addressed store, hash-verified

24
25
26def assert_eq_lockfile(previous, new):
27 for content in (previous, new):
28 assert isinstance(content, OrderedDict)
29
30 # if they both are OrderedDict, then `==` will also check for order
31 assert previous == new
32
33
34def test_deps_outs_are_sorted_by_path(tmp_dir, dvc, run_head):

Calls

no outgoing calls

Tested by

no test coverage detected