Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit62051b7

Browse files
committed
Update GitHub#user test
1 parent66b4b91 commit62051b7

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

‎tests/cassettes/GitHub_user.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"http_interactions": [{"request": {"body": "", "headers": {"Accept-Charset": "utf-8", "Content-Type": "application/json", "Accept-Encoding": "gzip, deflate, compress", "Accept": "application/vnd.github.v3.full+json", "User-Agent": "github3.py/0.8.0"}, "method": "GET", "uri": "https://api.github.com/users/sigmavirus24"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA51UTWvjMBD9K0XQPTmR5Y/YMZTuByz0sLcuC70EWZIdUVkykmxvNnR/+46ctJvmUhIw2Fjz3rwZzZs9UqaVGlXIybajo7SDSzIUIclRlWRxmcYRoiP11G4GqyBu633vKoyTZWsPB0tmOnz4xIxkZZqveLlu1kkuVuuEFGUtBOHrlLKmuOd3M8Ft+uU2+Q6P5EJ7yYx2y1b67VAHNvif0YIUqyxOM8apKIsiK7NaFElByprmyWrZ6/aTvfsNUl91bIJm9JECALwvhPbyJDUenLAOn3Vj6zt1Vv9/tefBjVHKTMByhvgwEX5DgsjDt9TtlSyA3GPjtwIuDkp6CY2Szl8uakbtcXhBhwOPg2mwgl8s7IgDWZMGRXtsRW9mwqF2zMreS5iDy2lP0cBmbEu1/EOvYwO0A5Ig7XIpMwrQYoSpvhx+gO1xb+VI2S60xgom5AjNvpLyDA+MftcL8MlPGIrQeunFhvIu7ICGKicipGkXAh6ovvlmLKeOGQgEW/ZU7+Dgq9B8Nxn7HCqtYX8ctwIshWmawL+tkrON8V8w9kyA57AIlg2brwUQPyiXzujo5tdDaFhHZdgu4OWmoZ4ZBYpaM36GpSRVIIOgrbSC1grEHZXW0qBKD0pFqB9qJdnmcAFVXrwaCGyIqjw/8RPsNThlQOWhrdRD1iQm8SLOFiR+jLMqLqo0eYJ8Q8/fxaQLQhbx6jEmFSFVmj2hl38OqrsDQAUAAA==", "encoding": "utf-8"}, "headers": {"status": "200 OK", "x-ratelimit-remaining": "58", "x-github-media-type": "github.v3; param=full; format=json", "x-content-type-options": "nosniff", "access-control-expose-headers": "ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes", "transfer-encoding": "chunked", "x-github-request-id": "4B79B570:17A7:2B77158:52799A0E", "content-encoding": "gzip", "vary": "Accept, Accept-Encoding", "server": "GitHub.com", "cache-control": "public, max-age=60, s-maxage=60", "last-modified": "Wed, 06 Nov 2013 01:11:34 GMT", "x-ratelimit-limit": "60", "etag": "\"3c900861c3d55200d30fb445abc055f9\"", "access-control-allow-credentials": "true", "date": "Wed, 06 Nov 2013 01:23:27 GMT", "access-control-allow-origin": "*", "content-type": "application/json; charset=utf-8", "x-ratelimit-reset": "1383704539"}, "url": "https://api.github.com/users/sigmavirus24", "status_code": 200}, "recorded_at": "2013-11-06T01:23:27"}], "recorded_with": "betamax"}
1+
{"http_interactions": [{"request": {"body": "", "headers": {"Accept-Charset": "utf-8", "Content-Type": "application/json", "Accept-Encoding": "gzip, deflate, compress", "Accept": "application/vnd.github.v3.full+json", "User-Agent": "github3.py/0.8.0"}, "method": "GET", "uri": "https://api.github.com/users/sigmavirus24"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA51UTYvbMBD9K4tge/JG/owdw9IvKOyhty2FvYSxJDuismQk2Wkatr+9Iye7zeayJCCwsOa9eTPSmz1RppOa1MTJrodJ2tGlOYmI5KRO87jK4ojABB7serQK4zbeD66mNFl09nCwYKanhy1lSV5lxZJXq3aVFmK5SpOyaoRI+CoD1pYf+f1McJt9vk2/4ZJcaC+Z0W7RSb8Zm8CG/3Mok3KZx1nOOIiqLPMqb0SZlknVQJEuF4PuPtj73yj1Rcc6aCbvKUDA20JgkCep6eiEdfSsGxvfq7P6/6s9D26NUmaLLGeIdxPRVySKPOyl7q5kQeSeGr8ReHFY0nNolHT+clEzak/DBzsceBy+Biv4xcKOOJS11ahoT60YzEw4No5ZOXiJ7+By2lM0shnbgZZ/4Do2RDskCdIulzKjEC0mfNWXww+wPR2snIDtQmusYEJO2OwrKc/wyOh3g0Cf/MBHEVovvVgD78MMaEE5ERENfQh4AH3z1VgOjhkMRFsOoHd48EVovtsa+ytU2uD8OE4FHArb7Rb92yk525j+RWPPBHQOi3DYsPlaEPEduHRGRzc/H0LDepBhuqCX2xY8MwoVdWb6hENJqkCGQRtpBTQKxR2VNtKQWo9KRWQYGyXZ+nABdVG9GAhtSOqiOPETzrUSy0Eqj20Fj1nTOInv4vwuiR/jvI7LOkufMN848Dcx2V2S4HqMszrDsOUTef4HMcXtQEAFAAA=", "encoding": "utf-8"}, "headers": {"status": "200 OK", "x-ratelimit-remaining": "54", "x-github-media-type": "github.v3; param=full; format=json", "x-content-type-options": "nosniff", "access-control-expose-headers": "ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes", "transfer-encoding": "chunked", "x-github-request-id": "4270737C:68E2:3DCEB02:528053EA", "content-encoding": "gzip", "vary": "Accept, Accept-Encoding", "server": "GitHub.com", "cache-control": "public, max-age=60, s-maxage=60", "last-modified": "Mon, 11 Nov 2013 03:34:06 GMT", "x-ratelimit-limit": "60", "etag": "\"160d470101abf70f0f6288962c03b4c0\"", "access-control-allow-credentials": "true", "date": "Mon, 11 Nov 2013 03:50:02 GMT", "access-control-allow-origin": "*", "content-type": "application/json; charset=utf-8", "x-ratelimit-reset": "1384142732"}, "url": "https://api.github.com/users/sigmavirus24", "status_code": 200}, "recorded_at": "2013-11-11T03:49:57"}, {"request": {"body": "", "headers": {"Accept-Encoding": "gzip, deflate, compress", "Accept": "application/vnd.github.v3.full+json", "User-Agent": "github3.py/0.8.0", "Accept-Charset": "utf-8", "Content-Type": "application/json", "Authorization": "Basic <BASIC_AUTH>"}, "method": "GET", "uri": "https://api.github.com/user"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA51UXWvbMBT9K8PQPaXxd+wYyr5g0Ie9dQz2Eq4l2RFVJCPJybLQ/fYdOenWhkJJwWAj33Puuefq3kOkTC911ERO9hvaSju6rIhmkeRRkxVJnSeziLbkya5GqxC39n5wTRyn894ef8yZ2cTHz5ilRZ2XC14vu2VWisUyS6u6FSLly5xYV33gNxPBVf7pKvuKR3KhvWRGu3kv/XpsAxvOC6rSalEkecE4ibqqirpoRZVVad1SmS3mg+7f25tfkPqoYxU0R68pAOB5ITTIJ6nj0Qnr4jM31n6jzur/r/Y8uDNKmR1YzhCvJor/ISHy+C11/0YWIA+x8WuBxqGkh2CUdP5yURPqEIcXHA48DrfBCn6xsBMOsnYaig6xFYOZCMfWMSsHL3EPLqd9igabsT1p+Zvexga0A0mQdrmUCQW02OJWXw4/wg7xYOWW2D5YYwUTcguz30h5hgej3w8Cc/IdlyJYL71YEd+EHdCRcmIWadqEgFvS774Yy8kxg0CM5UB6jx+fheb7nbH3odIW++O0FbAUdrsd5rdXchrj+A8GeyKIp7AZlg2b2gLEN+LSGT179+M2GLYhGbYLZrnryDOjoKg3249YSlIFMgStpRXUKog7KW2liRo9KjWLhrFVkq2ODWjK+nGAMIZRU5ZP5gl7rUI5oPKwlTyyZkmaXCfFdZrcJUWTVE2e/US+ceDPYvLrNMVzl+RNjrBFiPHGk1pNDYORp/TYmeGK8xfOUfQ9BpJ6VJGXebYIzipFrbHkTRAL8KAIFh0eO9FZIUKrBmIBlVRZgqAXYGcqHh7+ApuOoKvfBQAA", "encoding": "utf-8"}, "headers": {"status": "200 OK", "x-ratelimit-remaining": "4989", "x-github-media-type": "github.v3; param=full; format=json", "x-content-type-options": "nosniff", "access-control-expose-headers": "ETag, Link, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes", "transfer-encoding": "chunked", "x-github-request-id": "4270737C:68E2:3DCEB36:528053EA", "content-encoding": "gzip", "vary": "Accept, Authorization, Cookie, Accept-Encoding", "server": "GitHub.com", "cache-control": "private, max-age=60, s-maxage=60", "last-modified": "Mon, 11 Nov 2013 03:34:06 GMT", "x-ratelimit-limit": "5000", "etag": "\"ad2ba35fd2abf3043b07ca1548457630\"", "access-control-allow-credentials": "true", "date": "Mon, 11 Nov 2013 03:50:02 GMT", "access-control-allow-origin": "*", "content-type": "application/json; charset=utf-8", "x-ratelimit-reset": "1384142699"}, "url": "https://api.github.com/user", "status_code": 200}, "recorded_at": "2013-11-11T03:49:57"}], "recorded_with": "betamax"}

‎tests/integration/test_github.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,9 @@ def test_user(self):
101101
"""Test the ability to retrieve a User"""
102102
cassette_name=self.cassette_name('user')
103103
withself.recorder.use_cassette(cassette_name):
104-
r=self.gh.user('sigmavirus24')
104+
s=self.gh.user('sigmavirus24')
105+
self.basic_login()
106+
u=self.gh.user()
105107

106-
assertisinstance(r,github3.users.User)
108+
assertisinstance(s,github3.users.User)
109+
assertisinstance(u,github3.users.User)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp