Commit Graph
79 Commits
Author SHA1 Message Date
Vincent Jacques e525860b6b Fix default value 2012-02-19 10:55:25 +01:00
Vincent Jacques 6998094ffc Small refactoring 2012-02-19 10:28:41 +01:00
Vincent Jacques 9f868e490c Use urllib.urlencode 2012-02-19 10:22:41 +01:00
Vincent Jacques c700599040 Add type parameter to get_repos 2012-02-19 10:17:25 +01:00
Vincent Jacques 6f73ad23c4 Improve coverage, fix bugs 2012-02-18 18:22:05 +01:00
Vincent Jacques aa5e5f2319 Refactor, improve test coverage 2012-02-18 09:36:00 +01:00
Vincent Jacques 193a9829ab Implement pagination 2012-02-18 05:07:03 +00:00
Vincent Jacques c8b807b6ff Fix unit tests 2012-02-18 04:59:37 +00:00
Vincent Jacques b58cb5025f Remove trailing spaces 2012-02-18 04:52:46 +00:00
Vincent Jacques 0ec4281df5 Fix integration test 2012-02-18 04:50:27 +00:00
Vincent Jacques 1fca77ac52 Add parameters to url 2012-02-18 04:49:10 +00:00
Vincent Jacques 1f43877343 Extract Requester from Github 2012-02-18 04:44:20 +00:00
Vincent Jacques 74618d316e Raise on 404 error when getting data 2012-02-18 04:39:41 +00:00
Vincent Jacques 439e43233e Add unit tests for requests 2012-02-18 04:36:37 +00:00
Vincent Jacques 9036d7892d A NamedUser can indeed be the authenticated user 2012-02-16 23:22:44 +01:00
Vincent Jacques 6bc581a263 Rewrite asserts 2012-02-16 22:58:51 +01:00
Vincent Jacques 1c109a26af AuthenticatedUser and Organization.create_fork 2012-02-16 22:53:10 +01:00
Vincent Jacques 90c71a340b create_repo -> create_repo 2012-02-16 22:39:06 +01:00
Vincent Jacques b25232de78 AuthenticatedUser. and Organization.create_repos 2012-02-16 22:27:45 +01:00
Vincent Jacques 7c6574db4f ListOfObjects 2012-02-16 22:20:51 +01:00
Vincent Jacques 8800d4f641 AuthenticatedUser., NamedUser. and Organization.get_repo 2012-02-16 21:18:26 +01:00
Vincent Jacques 3ee42c8ba8 MethodFromCallable 2012-02-16 21:03:29 +01:00
Vincent Jacques b43b1eb8ac Refactor 2012-02-16 20:31:51 +01:00
Vincent Jacques 3f7117a84a Code reordering 2012-02-16 19:34:16 +01:00
Vincent Jacques 515cf1c139 dos2unix 2012-02-16 19:30:49 +01:00
Vincent Jacques 1cd909f3eb Rework naming 2012-02-16 19:29:41 +01:00
Vincent Jacques 9f010d92ad Refactoring attribute policies - step 4 2012-02-16 18:32:30 +01:00
Vincent Jacques 96938325c8 Refactoring attribute policies - step 3 2012-02-16 18:23:34 +01:00
Vincent Jacques 7cab276aa8 Refactoring attribute policies - step 2 2012-02-16 08:07:08 +01:00
Vincent Jacques f476ebd7e2 Refactoring attribute policies - step 1 2012-02-16 07:51:07 +01:00
Vincent Jacques 089d11ad6f Refactor 2012-02-15 06:40:42 +01:00
Vincent Jacques 5817d18274 Organization.has_in_members, .has_in_public_members,
Repository.has_in_collaborators,
AuthenticatedUser.has_in_following, .has_in_watched
2012-02-15 06:38:15 +01:00
Vincent Jacques b28f5ee974 Implement has_in_ for extended list attributes 2012-02-14 08:12:15 +01:00
Vincent Jacques fe8652f64f Fix return values in unit tests. Be explicit about data and status expectations 2012-02-14 07:59:26 +01:00
Vincent Jacques dabf8789b9 add_, remove_ -> add_to_, remove_from_ 2012-02-13 22:50:51 +01:00
Vincent Jacques 037ad0ab1d Repository.add_collaborators and .remove_collaborators 2012-02-13 22:48:12 +01:00
Vincent Jacques fb38f79069 Organization.remove_members, .add_public_members and .remove_public_members 2012-02-13 22:46:02 +01:00
Vincent Jacques 6a9b651921 Restore unit tests 2012-02-13 22:38:00 +01:00
Vincent Jacques d575753130 AuthenticatedUser.add_watched and .remove_watched 2012-02-13 22:34:18 +01:00
Vincent Jacques fcbcd145bb Reimplement networking with httplib instead of urllib2
This will allow real access to HTTP headers and status
2012-02-13 22:19:40 +01:00
Vincent Jacques 2b31f2e9c3 AuthenticatedUser.add_following and .remove_following 2012-02-13 21:43:45 +01:00
Vincent Jacques 66aa372874 Use status requests for DELETE 2012-02-13 21:14:48 +01:00
Vincent Jacques 2f67c50252 Use a real identity attribute instead of ugly hack 2012-02-13 21:02:44 +01:00
Vincent Jacques c0c2f50416 Fix previous commit 2012-02-13 20:56:57 +01:00
Vincent Jacques 10454361de Prepare for requests interrested only in headers 2012-02-13 18:19:48 +01:00
Vincent Jacques f445e83a3e PUT and DELETE list elements 2012-02-13 18:15:10 +01:00
Vincent Jacques 38873de734 Repository.edit 2012-02-12 22:22:54 +01:00
Vincent Jacques 23ce03c634 Organization.edit 2012-02-12 22:19:09 +01:00
Vincent Jacques 1a056e61f5 User.edit 2012-02-12 22:02:11 +01:00
Vincent Jacques 9ed8e2f804 Repository.get_collaborators, .get_contributors, .get_watchers, .get_forks 2012-02-12 21:28:12 +01:00