mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-23 23:09:44 +01:00
tests/diff: order dictionary (second try)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import collections
|
||||
import os
|
||||
|
||||
from dvc.cli import parse_args
|
||||
@@ -73,8 +74,14 @@ def test_json(mocker, caplog):
|
||||
def test_json_checksums(mocker, caplog):
|
||||
args = parse_args(["diff", "--show-json", "--checksums"])
|
||||
cmd = args.func(args)
|
||||
|
||||
diff = {
|
||||
"added": [{"path": "file", "checksum": "00000000"}],
|
||||
"added": [
|
||||
# py35: maintain a consistent key order for tests purposes
|
||||
collections.OrderedDict(
|
||||
[("path", "file"), ("checksum", "00000000")]
|
||||
)
|
||||
],
|
||||
"deleted": [],
|
||||
"modified": [],
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user