Skip to content
Snippets Groups Projects
Commit 7bae3df5 authored by yvesn's avatar yvesn
Browse files

obis: fixing tests

parent c03965db
No related branches found
No related tags found
No related merge requests found
...@@ -190,7 +190,7 @@ def test_undo_commit_when_sync_fails(tmpdir): ...@@ -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_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_add = MagicMock(return_value = CommandResult(returncode=0, output=None))
dm.git_wrapper.git_commit = 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 # when
result = dm.commit("Added data.") result = dm.commit("Added data.")
# then # then
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment