mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-10 15:28:34 +01:00
tests/diff: dont care about sorted jsons
This commit is contained in:
@@ -65,10 +65,9 @@ def test_json(mocker, caplog):
|
||||
mocker.patch("dvc.repo.Repo.diff", return_value=diff)
|
||||
|
||||
assert 0 == cmd.run()
|
||||
assert (
|
||||
'{"added": [{"path": "file"}], "deleted": [], "modified": []}'
|
||||
in caplog.text
|
||||
)
|
||||
assert '"added": [{"path": "file"}]' in caplog.text
|
||||
assert '"deleted": []' in caplog.text
|
||||
assert '"modified": []' in caplog.text
|
||||
|
||||
|
||||
def test_json_checksums(mocker, caplog):
|
||||
@@ -82,7 +81,6 @@ def test_json_checksums(mocker, caplog):
|
||||
mocker.patch("dvc.repo.Repo.diff", return_value=diff)
|
||||
|
||||
assert 0 == cmd.run()
|
||||
assert (
|
||||
'{"added": [{"path": "file", "checksum": "00000000"}], '
|
||||
'"deleted": [], "modified": []}' in caplog.text
|
||||
)
|
||||
assert '"added": [{"path": "file", "checksum": "00000000"}]' in caplog.text
|
||||
assert '"deleted": []' in caplog.text
|
||||
assert '"modified": []' in caplog.text
|
||||
|
||||
Reference in New Issue
Block a user