8000 Actually record add_collaborator test · frossie/github3.py@5ecb698 · GitHub
[go: up one dir, main page]

Skip to content

Commit 5ecb698

Browse files
committed
Actually record add_collaborator test
1 parent 724b485 commit 5ecb698

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"recorded_with": "betamax/0.4.1", "http_interactions": [{"request": {"headers": {"Accept-Charset": "utf-8", "Authorization": "Basic <BASIC_AUTH>", "Accept-Encoding": "gzip, deflate", "User-Agent": "github3.py/1.0.0a1", "Connection": "keep-alive", "Accept": "application/vnd.github.v3.full+json", "Content-Type": "application/json"}, "body": {"string": "", "encoding": "utf-8"}, "method": "GET", "uri": "https://api.github.com/repos/testgh3/collaborators"}, "recorded_at": "2015-04-15T03:42:09", "response": {"headers": {"X-GitHub-Request-Id": "42707340:4D8A:AA46D83:552DDE11", "Last-Modified": "Wed, 15 Apr 2015 03:40:51 GMT", "Access-Control-Allow-Origin": "*", "Vary": "Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-RateLimit-Limit": "60", "Access-Control-Allow-Credentials": "true", "X-Frame-Options": "deny", "X-Served-By": "8a5c38021a5cd7cef7b8f49a296fee40", "X-RateLimit-Reset": "1429072929", "X-GitHub-Media-Type": "github.v3; param=full; format=json", "Content-Security-Policy": "default-src 'none'", "ETag": "W/\"f04fbc3b8531d38eb58033270fdc5119\"", "Server": "GitHub.com", "Access-Control-Expose-Headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval", "Content-Type": "application/json; charset=utf-8", "Content-Encoding": "gzip", "X-Content-Type-Options": "nosniff", "Cache-Control": "private, max-age=60, s-maxage=60", "Transfer-Encoding": "chunked", "Status": "200 OK", "X-XSS-Protection": "1; mode=block", "Date": "Wed, 15 Apr 2015 03:42:09 GMT", "X-RateLimit-Remaining": "59"}, "body": {"string": "", "base64_string": "H4sIAAAAAAAAA6WY3W7jNhCFX6XQbb2mvY63XQPFdt9he9Mbg5ZoiYhECiRlIxHy7j1DSpbkFPIPbxJZ5nw8HM6QM24TmSW7zeb7H+vtn98WieKVSHZJqsuSH7ThThubLJJjU5b77jsnrMuLDbseo89KmGTXJqXOpQKkGwhzmmO9/r59+bb5ukj4iTtu9o0pMahwrrY7xsJLu8ylK5pDY4VJtXJCuWWqK9aw3vzH6a8NiLnpKIRO8OKKVsuOFMyBs2zQU7iqvJo/zOtHD+OOcIM+w/Za7AyeXYzIbx4gVf44AEYt064Q8BTkf9CipXUPSfEGLaN/e5kRwsLzRmSPyOlMIIY2+KNlRtTas5qDTY2sndTqIVkTQ4C0ybmS7/xhEAwpOknQQwK8AQzFCQH2kGWwaFlt5Imnb+QGI1IhT/Dp47QrU8DcW0359w92nDwsndjzrKJ0OvLSio9F4md2GORfLJBAd8Typ2TNxGXrMN3PLPvtOp2P2rxeJpnNLu/NPms+zUScGy6eASCbYA5XvIq3CApZtwx/uzSYLHY+GebETTDtZOkUGU7wKkK0Nwem0DrGg94cGGltI+4K0rkle4plfR6opjqEw+me6J8DB3vo5NbKXAkR4bkLomX92XkwXKVFDLQntCw8+R3meYRMsgbkUOpDBAU3F/OIltmCh3vC7eOUEZMIE6QRx0iZRLggnYnaYy+REBcgLiqH7Y7Q2BNY23my5CpveB7DvCDoPMftm/P3mwXFXJ4MDACpRjLy0FCZFnOMDRRSGe515HUEcwQZkL5UeF7nuG7wi68qeev6nnNlB5gEeTSU4vIaTJ9vVxq3pBKhZcOJGw70jv28V7sTvdc4nqErwSPCoCew9veau4JOJ0xUcyOeF9wBWHvgqIiWy2VbCO6r20qYqFwN9gBxkxao6Z7X2PYE1C8Vd75qPpLEDFV0qXkW4dMLAriwec/rDPbjPa/R6kWI8+ZjXiVLNIxaxZyhA2NMVtrJo0zvaRvmUmuCaX9YqVKx4GW5QJQ6mUrELXox2ju0xCLGN8EeS0CTHTqHUiCEI7xtRCC0LLR3qRHoDbI9d6jqv67W2y+rly/r7a/VZvey2m3X/2IVTZ3dHFM3triBwTnXhR2e0MB/bqCnrQD145jd2mIw+3sw2v3vzwqdUVoifq6C/N75TtcXzi1DiCx0JWpc+8lOIZypD3vH82pygae6UfAyXp65Q2WJy3J41V/6PaDgdh9SLdk501DbhjdDIo9enuWrHA8iHfbSiIVuapioksbo7reUoFXXQnVzjQSFNorUjr6fqPcfMnHkTen2ocJFDFXcOt+K1sJUWAG1+vQbT9eUhrVQtPSSKf/DM3pVJdwZ/dtIx7i26Fax/vgPoyI/GoUSAAA=", "encoding": "utf-8"}, "status": {"message": "OK", "code": 200}, "url": "https://api.github.com/repos/testgh3/collaborators"}}, {"request": {"headers": {"Accept-Charset": "utf-8", "Authorization": "Basic <BASIC_AUTH>", "Accept-Encoding": "gzip, deflate", "User-Agent": "github3.py/1.0.0a1", "Connection": "keep-alive", "Content-Length": "0", "Accept": "application/vnd.github.v3.full+json", "Content-Type": "application/json"}, "body": {"string": "", "encoding": "utf-8"}, "method": "PUT", "uri": "https://api.github.com/repos/testgh3/collaborators/collaborators/sigmavirus24"}, "recorded_at": "2015-04-15T03:42:09", "response": {"headers": {"Content-Security-Policy": "default-src 'none'", "X-GitHub-Request-Id": "42707340:4D8A:AA46DC3:552DDE11", "Server": "GitHub.com", "X-XSS-Protection": "1; mode=block", "Vary": "Accept-Encoding", "Strict-Transport-Security": "max-age=31536000; includeSubdomains; preload", "X-RateLimit-Limit": "60", "X-Content-Type-Options": "nosniff", "Access-Control-Allow-Origin": "*", "Access-Control-Allow-Credentials": "true", "X-Frame-Options": "deny", "X-Served-By": "13d09b732ebe76f892093130dc088652", "Access-Control-Expose-Headers": "ETag, Link, X-GitHub-OTP, X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset, X-OAuth-Scopes, X-Accepted-OAuth-Scopes, X-Poll-Interval", "X-RateLimit-Reset": "1429072929", "X-GitHub-Media-Type": "github.v3; param=full; format=json", "Date": "Wed, 15 Apr 2015 03:42:09 GMT", "X-RateLimit-Remaining": "58", "Status": "204 No Content"}, "body": {"string": "", "encoding": null}, "status": {"message": "No Content", "code": 204}, "url": "https://api.github.com/repos/testgh3/collaborators/collaborators/sigmavirus24"}}]}

tests/integration/test_repos_repo.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,14 @@ class TestRepository(helper.IntegrationHelper):
1111

1212
"""Integration tests for the Repository object."""
1313

14-
@pytest.skip('Need internet to record the cassette')
1514
def test_add_collaborator(self):
1615
"""Test the ability to add a collaborator to a repository."""
1716
self.basic_login()
1817
cassette_name = self.cassette_name('add_collaborator')
1918
with self.recorder.use_cassette(cassette_name):
20-
repository = self.gh.repository('github3py', 'fork_this')
19+
repository = self.gh.repository('testgh3', 'collaborators')
2120
assert repository
22-
assert repository.add_collaborator('esacteksab')
21+
assert repository.add_collaborator('sigmavirus24')
2322

2423
def test_assignees(self):
2524
"""Test the ability to retrieve assignees of issues on a repo."""

0 commit comments

Comments
 (0)
0