8000 "True" 100% coverage · davidmoss/github3.py@a3a8af9 · GitHub
[go: up one dir, main page]

Skip to content

Commit a3a8af9

Browse files
committed
"True" 100% coverage
I forgot that I configured coverage to skip __str__ and __repr__ methods.
1 parent 8d4a512 commit a3a8af9

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

tests/test_issues.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -185,8 +185,9 @@ def test_comment(self):
185185
self.response('issue_comment')
186186
self.get(self.api[:-1] + 'comments/476476')
187187

188-
expect(self.i.comment('476476')).isinstance(
189-
github3.issues.IssueComment)
188+
c = self.i.comment('476476')
189+
expect(c).isinstance(github3.issues.IssueComment)
190+
expect(repr(c).startswith('<Issue Comment')).is_True()
190191
self.mock_assertions()
191192

192193
def test_create_comment(self):
@@ -241,8 +242,9 @@ def test_iter_events(self):
241242
self.response('issue_event', _iter=True)
242243
self.get(self.api + '/events')
243244

244-
expect(next(self.i.iter_events())).isinstance(
245-
github3.issues.IssueEvent)
245+
e = next(self.i.iter_events())
246+
expect(e).isinstance(github3.issues.IssueEvent)
247+
expect(repr(e).startswith('<Issue Event')).is_True()
246248
self.mock_assertions()
247249

248250
def test_remove_label(self):

0 commit comments

Comments
 (0)
0