From e9bd9599a211bbdfcf2752fbb25d219ab7333214 Mon Sep 17 00:00:00 2001 From: "Mr. Outis" Date: Thu, 30 Jan 2020 09:26:35 -0600 Subject: [PATCH] tests/diff: dont care about sorted jsons --- tests/unit/command/test_diff.py | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/tests/unit/command/test_diff.py b/tests/unit/command/test_diff.py index fcf020997..bc8a65a27 100644 --- a/tests/unit/command/test_diff.py +++ b/tests/unit/command/test_diff.py @@ -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