diff options
author | Florian Apolloner <florian@apolloner.eu> | 2008-05-22 22:11:22 +0200 |
---|---|---|
committer | Florian Apolloner <florian@apolloner.eu> | 2008-05-22 22:11:22 +0200 |
commit | 5962862e9ba0a1c9a14306688973946f6f7ce75c (patch) | |
tree | 5d5caa8fb3b597fa7fee469c60510aa5b0e8086e /test/git/test_repo.py | |
parent | 71cd409660bc5b8c211dc7c51afae481d822d593 (diff) | |
download | gitpython-5962862e9ba0a1c9a14306688973946f6f7ce75c.tar.gz |
use ~/foo instead of /foo for repo.
Diffstat (limited to 'test/git/test_repo.py')
-rw-r--r-- | test/git/test_repo.py | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/test/git/test_repo.py b/test/git/test_repo.py index 52f5856d..ff267956 100644 --- a/test/git/test_repo.py +++ b/test/git/test_repo.py @@ -13,7 +13,7 @@ class TestRepo(object): @raises(NoSuchPathError) def test_new_should_raise_on_non_existant_path(self): - Repo("/foobar") + Repo("~/foobar") def test_description(self): assert_equal("Unnamed repository; edit this file to name it for gitweb.", self.repo.description) @@ -108,34 +108,34 @@ class TestRepo(object): def test_init_bare(self, repo, git): git.return_value = True - Repo.init_bare("/foo/bar.git") + Repo.init_bare("~/foo/bar.git") assert_true(git.called) assert_equal(git.call_args, (('init',), {})) assert_true(repo.called) - assert_equal(repo.call_args, (('/foo/bar.git',), {})) + assert_equal(repo.call_args, (('~/foo/bar.git',), {})) @patch(Repo, '__init__') @patch(Git, 'method_missing') def test_init_bare_with_options(self, repo, git): git.return_value = True - Repo.init_bare("/foo/bar.git", **{'template': "/baz/sweet"}) + Repo.init_bare("~/foo/bar.git", **{'template': "/baz/sweet"}) assert_true(git.called) assert_equal(git.call_args, (('init',), {'template': '/baz/sweet'})) assert_true(repo.called) - assert_equal(repo.call_args, (('/foo/bar.git',), {})) + assert_equal(repo.call_args, (('~/foo/bar.git',), {})) @patch(Repo, '__init__') @patch(Git, 'method_missing') def test_fork_bare(self, repo, git): git.return_value = None - self.repo.fork_bare("/foo/bar.git") + self.repo.fork_bare("~/foo/bar.git") assert_true(git.called) - assert_equal(git.call_args, (('clone', '%s/.git' % absolute_project_path(), '/foo/bar.git'), {'bare': True})) + assert_equal(git.call_args, (('clone', '%s/.git' % absolute_project_path(), '~/foo/bar.git'), {'bare': True})) assert_true(repo.called) @patch(Repo, '__init__') @@ -143,10 +143,10 @@ class TestRepo(object): def test_fork_bare_with_options(self, repo, git): git.return_value = None - self.repo.fork_bare("/foo/bar.git", **{'template': '/awesome'}) + self.repo.fork_bare("~/foo/bar.git", **{'template': '/awesome'}) assert_true(git.called) - assert_equal(git.call_args, (('clone', '%s/.git' % absolute_project_path(), '/foo/bar.git'), + assert_equal(git.call_args, (('clone', '%s/.git' % absolute_project_path(), '~/foo/bar.git'), {'bare': True, 'template': '/awesome'})) assert_true(repo.called) |