From 1083748b828dfca6a72014434850da0f2a0579ab Mon Sep 17 00:00:00 2001 From: Michael Trier Date: Mon, 15 Dec 2008 13:44:12 -0500 Subject: Corrected failing tests because the Repo mocking was not returning None. --- test/git/test_repo.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test/git/test_repo.py') diff --git a/test/git/test_repo.py b/test/git/test_repo.py index aca63843..79c2dd8c 100644 --- a/test/git/test_repo.py +++ b/test/git/test_repo.py @@ -118,6 +118,7 @@ class TestRepo(object): @patch_object(Git, '_call_process') def test_init_bare(self, repo, git): git.return_value = True + repo.return_value = None Repo.init_bare("repos/foo/bar.git") @@ -130,6 +131,7 @@ class TestRepo(object): @patch_object(Git, '_call_process') def test_init_bare_with_options(self, repo, git): git.return_value = True + repo.return_value = None Repo.init_bare("repos/foo/bar.git", **{'template': "/baz/sweet"}) @@ -142,6 +144,7 @@ class TestRepo(object): @patch_object(Git, '_call_process') def test_fork_bare(self, repo, git): git.return_value = None + repo.return_value = None self.repo.fork_bare("repos/foo/bar.git") @@ -154,6 +157,7 @@ class TestRepo(object): @patch_object(Git, '_call_process') def test_fork_bare_with_options(self, repo, git): git.return_value = None + repo.return_value = None self.repo.fork_bare("repos/foo/bar.git", **{'template': '/awesome'}) -- cgit v1.2.1