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

Commitbb89bf7

Browse files
committed
Add integration tests for GitHub#organization
1 parent721974f commitbb89bf7

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +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/orgs/github3py"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA51Sy27DIBD8F6T0lNg8YjtGiqpeeu0lp14ibLCDZAPCOG0a5d+7NVHr5JZKHNjHLMvMnFFnW20QR60Oh7Fi7oSWSEvESbGhJMuXaPQdlA8huIGnqXA6ia1JbfvU+nZI51CvnB32D2DSCQGPqqMy4TFohAC2V32l/GPgK+acxssFxrix6nS9/8+0W+h8qDiKIPwdJTRpfSxMNMZryspcMakyxigWVVNuskyWhNaSyXLNSPMst5MOC/ayoK9wtATOdG3NMBMF8k0mCkWowHRD8obVJa6wFMV6XVJZVAVLnGmf/PYT/mxEr/7kTyb9YSUnzGmW1hbSFXgFcTN23RJsU4ugLTgnxqoXGnwSgysZUVme/RLb6iEMiOMlamzX2Q+QbBZpA9Ohdgh9d0fXzHFzs9VeiaDkXgRYlWJCVzhb0WKH15xmnOXvsPTo5E0PWxGywvkOM85KjqeecHI/HLz5Vhj9Ff91+QbZAsCwGwMAAA==", "encoding": "utf-8"}, "headers": {"status": "200 OK", "x-ratelimit-remaining": "59", "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": "48A0D4DF:77B3:324C724:527B0A26", "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 03:39:06 GMT", "x-ratelimit-limit": "60", "etag": "\"2f2ab6ad2640adc70fd0d93389d95d34\"", "access-control-allow-credentials": "true", "date": "Thu, 07 Nov 2013 03:33:58 GMT", "access-control-allow-origin": "*", "content-type": "application/json; charset=utf-8", "x-ratelimit-reset": "1383798838"}, "url": "https://api.github.com/orgs/github3py", "status_code": 200}, "recorded_at": "2013-11-07T03:33:56"}], "recorded_with": "betamax"}

‎tests/integration/test_github.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,14 @@ def test_create_key(self):
5656
assertk.title=='Key name'
5757
assertk.key==SSH_KEY
5858

59+
deftest_organization(self):
60+
"""Test the ability to retrieve an Organization"""
61+
cassette_name=self.cassette_name('organization')
62+
withself.recorder.use_cassette(cassette_name):
63+
o=self.gh.organization('github3py')
64+
65+
assertisinstance(o,github3.orgs.Organization)
66+
5967
deftest_repository(self):
6068
"""Test the ability to retrieve a Repository"""
6169
cassette_name=self.cassette_name('repository')

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp