Skip to content

Commit

Permalink
tests/diff: dont care about sorted jsons
Browse files Browse the repository at this point in the history
  • Loading branch information
Mr. Outis committed Jan 30, 2020
1 parent e501549 commit e9bd959
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions tests/unit/command/test_diff.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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

0 comments on commit e9bd959

Please sign in to comment.