diff options
author | 2012-06-03 13:02:54 +0200 | |
---|---|---|
committer | 2012-06-03 13:02:54 +0200 | |
commit | 897671db979e64754de2c53cbbe83fcbae37bb02 (patch) | |
tree | 11ac9ede303971d2bcaf270d833fd4112c923509 /pygithub3/tests/services/test_repos.py | |
parent | Merge 'services/orgs' (diff) | |
parent | Change "Edit" to "Update" in docstring (diff) | |
download | python-github3-897671db979e64754de2c53cbbe83fcbae37bb02.tar.xz python-github3-897671db979e64754de2c53cbbe83fcbae37bb02.zip |
Merge branch 'services/issues' of https://github.com/alejandrogomez/python-github3 into services/issues
Conflicts:
docs/services.rst
pygithub3/github.py
pygithub3/requests/repos/__init__.py
Diffstat (limited to 'pygithub3/tests/services/test_repos.py')
-rw-r--r-- | pygithub3/tests/services/test_repos.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pygithub3/tests/services/test_repos.py b/pygithub3/tests/services/test_repos.py index e21d474..a07635a 100644 --- a/pygithub3/tests/services/test_repos.py +++ b/pygithub3/tests/services/test_repos.py @@ -134,6 +134,18 @@ class TestRepoService(TestCase): self.assertEqual(request_method.call_args[0], ('get', _('repos/octocat/octocat_repo/branches'))) + def test_LIST_labels(self, request_method): + request_method.return_value = mock_response_result() + self.rs.list_labels().all() + self.assertEqual(request_method.call_args[0], + ('get', _('repos/octocat/octocat_repo/labels'))) + + def test_LIST_milestones(self, request_method): + request_method.return_value = mock_response_result() + self.rs.list_milestones().all() + self.assertEqual(request_method.call_args[0], + ('get', _('repos/octocat/octocat_repo/milestones'))) + @patch.object(requests.sessions.Session, 'request') class TestCollaboratorsService(TestCase): |