diff options
author | 2011-11-13 19:29:12 +0100 | |
---|---|---|
committer | 2011-11-13 19:29:12 +0100 | |
commit | 78752f56adb57bb1d5672a6ac819944477b7b529 (patch) | |
tree | 66fac159d33d9801710c3af63bad99c721a1f59f /github3/tests/fixtures.py | |
parent | PEP8 and renaming (diff) | |
download | python-github3-78752f56adb57bb1d5672a6ac819944477b7b529.tar.xz python-github3-78752f56adb57bb1d5672a6ac819944477b7b529.zip |
Testing on fire (handlers, user_handler)
Also fix bugs, pep8
Diffstat (limited to 'github3/tests/fixtures.py')
-rw-r--r-- | github3/tests/fixtures.py | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/github3/tests/fixtures.py b/github3/tests/fixtures.py new file mode 100644 index 0000000..aef4425 --- /dev/null +++ b/github3/tests/fixtures.py @@ -0,0 +1,40 @@ +#!/usr/bin/env python +# -*- encoding: utf-8 -*- + +GET_USER = { + "login": "octocat", + "id": 1, + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "url": "https://api.github.com/users/octocat", + "name": "monalisa octocat", + "company": "GitHub", + "blog": "https://github.com/blog", + "location": "San Francisco", + "email": "octocat@github.com", + "hireable": False, + "bio": "There once was...", + "public_repos": 2, + "public_gists": 1, + "followers": 20, + "following": 0, + "html_url": "https://github.com/octocat", + "created_at": "2008-01-14T04:33:35Z", + "type": "User" +} + +GET_LINK = '<https://api.github.com/gists/public?page=2>; rel="next", <https://api.github.com/gists/public?page=5>; rel="last"' + +GET_FOLLOWERS = [ + { + "login": "octocat", + "id": 1, + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "url": "https://api.github.com/users/octocat" + }, + { + "login": "octocat", + "id": 1, + "avatar_url": "https://github.com/images/error/octocat_happy.gif", + "url": "https://api.github.com/users/octocat" + }, +] |