aboutsummaryrefslogtreecommitdiffstats
path: root/github3/tests/fixtures.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2011-11-16 01:55:57 +0100
committerDavid Medina <davidmedina9@gmail.com>2011-11-16 01:55:57 +0100
commit437b7a6b9623bc4670de3c2e370d671ced0bc5c8 (patch)
tree19c0d1ff229e6d4ca71d8167df5fc38b474502f2 /github3/tests/fixtures.py
parentFix 411 with PUT request (diff)
downloadpython-github3-437b7a6b9623bc4670de3c2e370d671ced0bc5c8.tar.xz
python-github3-437b7a6b9623bc4670de3c2e370d671ced0bc5c8.zip
Wip on AuthUser handler tests
Also "python way" with Design by contract
Diffstat (limited to 'github3/tests/fixtures.py')
-rw-r--r--github3/tests/fixtures.py36
1 files changed, 36 insertions, 0 deletions
diff --git a/github3/tests/fixtures.py b/github3/tests/fixtures.py
index 02086f8..5f56753 100644
--- a/github3/tests/fixtures.py
+++ b/github3/tests/fixtures.py
@@ -117,3 +117,39 @@ GET_SHORT_GISTS = [
"created_at": "2010-04-14T02:15:15Z"
}
]
+GET_FULL_USER = {
+ "login": "octocat",
+ "id": 1,
+ "avatar_url": "https://github.com/images/error/octocat_happy.gif",
+ "gravatar_id": "somehexcode",
+ "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",
+ "total_private_repos": 100,
+ "owned_private_repos": 100,
+ "private_gists": 81,
+ "disk_usage": 10000,
+ "collaborators": 8,
+ "plan": {
+ "name": "Medium",
+ "space": 400,
+ "collaborators": 10,
+ "private_repos": 20
+ }
+}
+GET_USER_EMAILS = [
+ "octocat@github.com",
+ "support@github.com"
+]