Skip to content

Commit 626244b

Browse files
committed
100% coverage on git.
1 parent 0fe39c4 commit 626244b

2 files changed

Lines changed: 1 addition & 3 deletions

File tree

github3/git.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ def __init__(self, data, session=None):
5050
self.sha = data.get('sha')
5151
self._api = data.get('url')
5252

53-
def __repr__(self):
54-
return '<github3-gitdata at 0x{0:x}>'.format(id(self))
55-
5653

5754
class Commit(BaseCommit):
5855
"""The :class:`Commit <Commit>` object. This represents a commit made in a

tests/test_git.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ def test_tree_recurse(self):
113113
def test_hash(self):
114114
for h in self.hashes:
115115
expect(h).isinstance(Hash)
116+
expect_str(repr(h))
116117

117118
def test_hash_mode(self):
118119
expect_str(self.hash.mode)

0 commit comments

Comments
 (0)