diff options
author | David Medina <davidmedina9@gmail.com> | 2012-06-16 14:04:29 +0200 |
---|---|---|
committer | David Medina <davidmedina9@gmail.com> | 2012-06-16 14:04:29 +0200 |
commit | e0a59fd960b4fc2ba6b8dfbdff9683c78eacfb27 (patch) | |
tree | a34948419c325916e82428b9056a25a24aa0d34f | |
parent | Merge #12 'services/issues' (diff) | |
download | python-github3-e0a59fd960b4fc2ba6b8dfbdff9683c78eacfb27.tar.xz python-github3-e0a59fd960b4fc2ba6b8dfbdff9683c78eacfb27.zip |
Update readme and authors
Also some PEP8
-rw-r--r-- | AUTHORS.rst | 4 | ||||
-rw-r--r-- | README.rst | 2 | ||||
-rw-r--r-- | pygithub3/requests/issues/labels.py | 4 | ||||
-rw-r--r-- | pygithub3/tests/services/test_issues.py | 5 |
4 files changed, 9 insertions, 6 deletions
diff --git a/AUTHORS.rst b/AUTHORS.rst index cea8532..c9f74e4 100644 --- a/AUTHORS.rst +++ b/AUTHORS.rst @@ -1,4 +1,5 @@ python-github3 is written and maintained by **David Medina** and + various contributors: Development Lead @@ -25,3 +26,6 @@ Patches and Suggestions - Nathaniel Williams <nat.williams@gmail.com> - Alejandro Gómez <alejandroogomez@gmail.com> - Stefano Rivera <stefano@rivera.za.net> +- Ouertani Mohammed Amine <tsl.hacker@gmail.com> +- Conor Branagan <conor.branagan@gmail.com> +- Ralph Bean <rbean@redhat.com> @@ -48,7 +48,7 @@ Achievements TODO ----- -- Services: Issues, Events +- Services: Events - Oauth authorization API (service?) - Proxy methods into resources (e.g copitux.followers) diff --git a/pygithub3/requests/issues/labels.py b/pygithub3/requests/issues/labels.py index 9ae6025..7ba6c7a 100644 --- a/pygithub3/requests/issues/labels.py +++ b/pygithub3/requests/issues/labels.py @@ -20,7 +20,7 @@ class Create(Request): resource = Label body_schema = { 'schema': ('name', 'color'), - 'required': ('name', 'color' ) + 'required': ('name', 'color') } def clean_body(self): @@ -38,7 +38,7 @@ class Update(Create): resource = Label body_schema = { 'schema': ('name', 'color'), - 'required': ('name', 'color' ) + 'required': ('name', 'color') } diff --git a/pygithub3/tests/services/test_issues.py b/pygithub3/tests/services/test_issues.py index 2d42405..8d34b71 100644 --- a/pygithub3/tests/services/test_issues.py +++ b/pygithub3/tests/services/test_issues.py @@ -137,7 +137,7 @@ class TestLabelsService(TestCase): request_method.return_value = mock_response('post') # invalid color with self.assertRaises(ValidationError): - args={'name': 'bug', 'color': 'FF00'} + args = {'name': 'bug', 'color': 'FF00'} self.lb.create(args) def test_UPDATE(self, request_method): @@ -150,8 +150,7 @@ class TestLabelsService(TestCase): request_method.return_value = mock_response('post') # invalid color with self.assertRaises(ValidationError): - args={'name': 'critical', - 'color': 'FF00',} + args = {'name': 'critical', 'color': 'FF00'} self.lb.update('bug', args) def test_DELETE(self, request_method): |