diff --git a/obis/src/python/obis/dm/data_mgmt_test.py b/obis/src/python/obis/dm/data_mgmt_test.py index b873c0ff3e7bb7ef77c8a80e1480141e73ae0714..f6bad774e76236c89ce21b06f1e8a1772dd8acd4 100644 --- a/obis/src/python/obis/dm/data_mgmt_test.py +++ b/obis/src/python/obis/dm/data_mgmt_test.py @@ -190,7 +190,7 @@ def test_undo_commit_when_sync_fails(tmpdir): dm.git_wrapper.git_top_level_path = MagicMock(return_value = CommandResult(returncode=0, output=None)) dm.git_wrapper.git_add = MagicMock(return_value = CommandResult(returncode=0, output=None)) dm.git_wrapper.git_commit = MagicMock(return_value = CommandResult(returncode=0, output=None)) - dm._sync = lambda: CommandResult(returncode=-1, output="dummy error") + dm._sync = lambda *args: CommandResult(returncode=-1, output="dummy error") # when result = dm.commit("Added data.") # then