Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commita3a8af9

Browse files
committed
"True" 100% coverage
I forgot that I configured coverage to skip __str__ and __repr__ methods.
1 parent8d4a512 commita3a8af9

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
deftest_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
deftest_remove_label(self):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp