From b00f3689aa19938c10576580fbfc9243d9f3866c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Steve=20Fr=C3=A9cinaux?= Date: Tue, 16 Sep 2008 08:08:47 +0200 Subject: Replace GitPython with git in repr() outputs. The imported module is called git (as in "import git"), so it's less confusing to do so than to call everything GitPython.something. --- test/git/test_actor.py | 2 +- test/git/test_blob.py | 2 +- test/git/test_commit.py | 2 +- test/git/test_head.py | 2 +- test/git/test_repo.py | 2 +- test/git/test_tag.py | 2 +- test/git/test_tree.py | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) (limited to 'test') diff --git a/test/git/test_actor.py b/test/git/test_actor.py index 3bb92a09..76b0ecc9 100644 --- a/test/git/test_actor.py +++ b/test/git/test_actor.py @@ -21,7 +21,7 @@ class TestActor(object): def test_should_display_representation(self): a = Actor.from_string("Michael Trier ") - assert_equal('">', repr(a)) + assert_equal('">', repr(a)) def test_str_should_alias_name(self): a = Actor.from_string("Michael Trier ") diff --git a/test/git/test_blob.py b/test/git/test_blob.py index c4d8036c..2f43e82f 100644 --- a/test/git/test_blob.py +++ b/test/git/test_blob.py @@ -86,4 +86,4 @@ class TestBlob(object): def test_should_return_appropriate_representation(self): blob = Blob(self.repo, **{'id': 'abc'}) - assert_equal('', repr(blob)) + assert_equal('', repr(blob)) diff --git a/test/git/test_commit.py b/test/git/test_commit.py index ff7458e1..583a5079 100644 --- a/test/git/test_commit.py +++ b/test/git/test_commit.py @@ -218,4 +218,4 @@ class TestCommit(object): def test_repr(self): commit = Commit(self.repo, id='abc') - assert_equal('', repr(commit)) + assert_equal('', repr(commit)) diff --git a/test/git/test_head.py b/test/git/test_head.py index d3af3d6b..ecac13c8 100644 --- a/test/git/test_head.py +++ b/test/git/test_head.py @@ -17,7 +17,7 @@ class TestHead(object): head = self.repo.heads[0] - assert_equal('' % head.name, repr(head)) + assert_equal('' % head.name, repr(head)) assert_true(git.called) assert_equal(git.call_args, (('for_each_ref', 'refs/heads'), {'sort': 'committerdate', 'format': '%(refname)%00%(objectname)'})) diff --git a/test/git/test_repo.py b/test/git/test_repo.py index 989dd4fe..669a8f62 100644 --- a/test/git/test_repo.py +++ b/test/git/test_repo.py @@ -256,7 +256,7 @@ class TestRepo(object): def test_repr(self): path = os.path.join(os.path.abspath(GIT_REPO), '.git') - assert_equal('' % path, repr(self.repo)) + assert_equal('' % path, repr(self.repo)) @patch(Git, '_call_process') def test_log(self, git): diff --git a/test/git/test_tag.py b/test/git/test_tag.py index 2f915b8d..3d33d7e3 100644 --- a/test/git/test_tag.py +++ b/test/git/test_tag.py @@ -30,7 +30,7 @@ class TestTag(object): git.return_value = fixture('for_each_ref') tag = self.repo.tags[0] - assert_equal('' % tag.name, repr(tag)) + assert_equal('' % tag.name, repr(tag)) assert_true(git.called) assert_equal(git.call_args, (('for_each_ref', 'refs/tags'), {'sort': 'committerdate', 'format': '%(refname)%00%(objectname)'})) diff --git a/test/git/test_tree.py b/test/git/test_tree.py index 34aa4d61..fa3337c9 100644 --- a/test/git/test_tree.py +++ b/test/git/test_tree.py @@ -146,4 +146,4 @@ class TestTree(object): def test_repr(self): tree = Tree(self.repo, id='abc') - assert_equal('', repr(tree)) + assert_equal('', repr(tree)) -- cgit v1.2.1