Skip to content
This repository was archived by the owner on Dec 17, 2019. It is now read-only.

Commit 4e07cc2

Browse files
committed
Remove list_labels from repo service
in favour of issues.labels.list() to maintain the same structure with Github API docs
1 parent 5cd7ad5 commit 4e07cc2

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

pygithub3/tests/services/test_repos.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -134,18 +134,6 @@ def test_LIST_branches(self, request_method):
134134
self.assertEqual(request_method.call_args[0],
135135
('get', _('repos/octocat/octocat_repo/branches')))
136136

137-
def test_LIST_labels(self, request_method):
138-
request_method.return_value = mock_response_result()
139-
self.rs.list_labels().all()
140-
self.assertEqual(request_method.call_args[0],
141-
('get', _('repos/octocat/octocat_repo/labels')))
142-
143-
def test_LIST_milestones(self, request_method):
144-
request_method.return_value = mock_response_result()
145-
self.rs.list_milestones().all()
146-
self.assertEqual(request_method.call_args[0],
147-
('get', _('repos/octocat/octocat_repo/milestones')))
148-
149137

150138
@patch.object(requests.sessions.Session, 'request')
151139
class TestCollaboratorsService(TestCase):

0 commit comments

Comments
 (0)