Open roniemartinez opened 2 years ago
Diffing in unittest.mock is not supported.
Note: Sample output is manageable at the level below but common tests contain more than the sample data.
Sample test:
from unittest import mock def test_clarity(): mocked_object = mock.MagicMock() mocked_object.save({"data": "wrong data"}) mocked_object.save.assert_called_with({"data": "expected data"})
Sample output:
\
Diffing in unittest.mock is not supported.
Note: Sample output is manageable at the level below but common tests contain more than the sample data.
Sample test:
Sample output:
\