8000 Add unit test for issue retrieval from pull requests · souravsingh/github3.py@061ff0e · GitHub
[go: up one dir, main page]

Skip to content

Commit 061ff0e

Browse files
committed
Add unit test for issue retrieval from pull requests
1 parent 0bea536 commit 061ff0e

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/unit/test_pulls.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,14 @@ def test_is_merged(self):
6363

6464
self.session.get.assert_called_once_with(url_for('merge'))
6565

66+
def test_issue(self):
67+
"""Show that a user can retrieve the associated issue of a PR."""
68+
self.instance.issue()
69+
70+
self.session.get.assert_called_once_with(
71+
url_for().replace('pulls', 'issues')
72+
)
73+
6674
def test_merge(self):
6775
"""Show that a user can merge a Pull Request."""
6876
self.instance.merge()

0 commit comments

Comments
 (0)
0