8000 Migrated tests/test_notifications.py to tests/integration/test_notifi… · pythonthings/github3.py@0341e2b · GitHub
[go: up one dir, main page]

Skip to content

Commit 0341e2b

Browse files
Migrated tests/test_notifications.py to tests/integration/test_notifications.py
1 parent eb70be0 commit 0341e2b

File tree

4 files changed

+39
-34
lines changed

4 files changed

+39
-34
lines changed

tests/cassettes/Subscription_set.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"http_interactions": [{"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": "gzip, deflate", "Accept": "application/vnd.github.v3.full+json", "User-Agent": "github3.py/1.0.0a2", "Accept-Charset": "utf-8", "Connection": "keep-alive", "Content-Type": "application/json", "Authorization": "token <AUTH_TOKEN>"}, "method": "GET", "uri": "https://api.github.com/repos/sigmavirus24/github3.py"}, "response": {"body": {"string": "", "base64_string": "H4sIAAAAAAAAA62YQY/qNhDHvwrKtSwmsGh3I1WvPbW9vcPrpRdkEkOsTeLIdkBstN+9/7GTkPBU2F33giB4fv57POPMuI1kFiXrp3j5FMfzqOKliJLoIG3e7NaL+hzNo31TFNvuDyMPJT9K3ZjVI5uMUqdK6Chpo0IdZAXGeCgoNM3qcfm8Xs4jfuSW622jC4zLra1Nwph/aBae2hihU1VZUdlFqkrWMG/87fjrGrSD7hiEjfDgilXLjuONATPsSlBuy+JKgp/amVwN3quiUCdQrkXfm4gNluRJR5HV4YsUWLZM2VzAd1jSOzlCGvt5Uc6qxQYau5UZcQw2RIvs08I6O8ii/X9vmRa1csBmZ1ItaytV9XmBE2vQlD7wSr7xr9FgbQAhaZ+X4qxgLY6Ixc+be7OW1VoeeXom12iRCnmEs7+IvLIH0Z5rStu/ERTkemnFlmclpeGeF0a8zyM3vcUg92COrPto9E/TPBPDrmLC72ebq2pWyJ3m+jzbKz2TyFm95ylidXbCMTJDuM7+kPbPZjf7/ftfR8pejHsdlNzMXOf8STJO5RDpzp7cRCA9AYCkV3EO4pB9y/DZ5VOKVOc7pblV9w6N2wInoJaNf1IsWcHLIOEOAFCuVJgnHQAgaUwjPhTatxfuOIb1+VM15c4feR/JmttoT4BWbnDOV0IEeXCAtKw/lZEOVZqHYXtGy/w3t9v8ECSV7IHZFWoXxMGLkjlIy0zO/XvIbkPVEZUYE6gW+2CpxBigVgfut5NJkAGJl6DF1gfp7Bms7Txa8OrQ8EMYdYBg1+lVfeBvd4uY27lzoQBJFZqWuyb8kLtwSKmvHZDvYS69YC5QV5DcLnPuOGBU2DgXlKW8VxfcJnaISdj/D1iK02s0/b5fxtyXS4yWXc5kf+h39BDvdqd+r3M8R9cOBIVEz2DtLzW3OZ1cmKrmWoSI7hCs3XEUW4vFos0Fd2V1KXRgBnsCUFynOarGEJ1tz0DVU3LrqvU9ycxQvReKZ0G+HSAA+m0M0eoJ4/2v0YcGCXSAMbGUhTBWVWFn7IUyZlfKyr1MP9Kx3E63Caj9ZmSVijkvijmi1spUIo5Ra9MuouAUYR7yBCwD1wC+UykEQjrI61p4Rst8p5lqgUYk23KLBmK1jFcPy/VDvP4RvySb52Sz/gcraepsMmbzEMcP8fLHcp2sl0m8oTF1Y/IRZhjykixXyfKZhuAE7EIQ33DFgE9ca/zU349aCro1gKEx+cXwt4tZ8h/3H51ZWiCWroL+43Mer19L900hNVelqFEmdDcpwyrX9XkBT2dovzKVmgV6YEYrk28Y+vL08jIpCFLVVNiPxxiPT9yidsWrd/ywLySGpo+m5mbr0zRKrG6oq8STyzEweniSr/LSe2IUSTa9me/iuunizQbnptRadTdEFdIWNwC1qLrZemGbR99KguOMRkOihP7sV9ItLBN73hR26+tprCRDI1ComoJJ6BJLobsKusMaN88+0gbxdIh43eiqK2FPaCB7QU7FuHjplrTavP8LZpDLGWgTAAA=", "encoding": "utf-8"}, "headers": {"vary": "Accept, Authorization, Cookie, X-GitHub-OTP", "x-github-media-type": "github.v3; param=full; format=json", "x-oauth-scopes": "gist, repo, user", "x-xss-protection": "1; mode=block", "x-content-type-options": "nosniff", "x-accepted-oauth-scopes": "repo", "etag": "W/\"8313958a522afb0f282e946804cceec2\"", "cache-control": "private, max-age=60, s-maxage=60", "status": "200 OK", "x-ratelimit-remaining": "4975", "x-served-by": "76d9828c7e4f1d910f7ba069e90ce976", "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", "transfer-encoding": "chunked", "x-github-request-id": "97E1C718:1AD0:5492035:5641B377", "access-control-allow-credentials": "true", "last-modified": "Tue, 10 Nov 2015 03:30:15 GMT", "date": "Tue, 10 Nov 2015 09:05:59 GMT", "access-control-allow-origin": "*", "content-security-policy": "default-src 'none'", "content-encoding": "gzip", "strict-transport-security": "max-age=31536000; includeSubdomains; preload", "server": "GitHub.com", "x-ratelimit-limit": "5000", "x-frame-options": "deny", "content-type": "application/json; charset=utf-8", "x-ratelimit-reset": "1447148233"}, "status": {"message": "OK", "code": 200}, "url": "https://api.github.com/repos/sigmavirus24/github3.py"}, "recorded_at": "2015-11-10T09:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": "gzip, deflate", "Accept": "application/vnd.github.v3.full+json", "User-Agent": "github3.py/1.0.0a2", "Accept-Charset": "utf-8", "Connection": "keep-alive", "Content-Type": "application/json", "Authorization": "token <AUTH_TOKEN>"}, "method": "GET", "uri": "https://api.github.com/repos/sigmavirus24/github3.py/notifications?participating=false&per_page=100&all=true"}, "response": {"body": {"string": "", "base64_string": "H4sIAAAAAAAAA+2aTW/jNhCG/4rgU4v1mpK/4hhYLHpq91AgKNxLi8KgZdpiI4kuSTnwCvvf+w4l27KblZMwvekSxBbn4Wg4MyTf5M+yJ9e9eS8KZ9PJdDq67/V7Ra4Fx5cbnhrR7+GDUTnGGMutWMYJz7eChu3W+LxecotnwzCafIyij+H9IhrPR7P5cPgHxqTc2CXRLkdF4SKczcf38+GERpli9beIgSl7VtpU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VOa7AttwScQF6Dys5F5LPrQKvrIWitjiTzGWZtWEQdO4RehioDXgAxQ3VRS6DJ+4dGiYpSMbpq4irQe+C/eltWKC2sKR82LZXtcb7BYkwTHziLVZDiCTIWIfk+kIrUG2wiNeFafmi2iyTyazqOwRZ8iFSucj8J56EY9o0/9KqFzWBEskKULnDiCjVZZQJKRYU44QouHphRYVX9Jly8ygW/Bh/q7IpeWHH27ZOXqBorVncux/0+xGs9Go3AaYpb6PvuAiX8T/0Avs51u5ZRExOblN3cM7nQr7M3uWnalyHa6VVOyfiZAnW7V6Vbt2+utS01DAOt0K/TiTrd68x/NOt0KZ6JOt/LpR51u1elW7q/sFwpAp1tB+up0q0r8wh7d6VadblWs3D/qvJNuddKS3kG3qlhXutVf/wLHSqUIXiUAAA==", "encoding": "utf-8"}, "headers": {"vary": "Accept, Authorization, Cookie, X-GitHub-OTP", "x-github-media-type": "github.v3; param=full; format=json", "x-oauth-scopes": "gist, repo, user", "x-xss-protection": "1; mode=block", "x-content-type-options": "nosniff", "x-accepted-oauth-scopes": "notifications, repo", "cache-control": "private, max-age=60, s-maxage=60", "x-poll-interval": "60", "status": "200 OK", "x-ratelimit-remaining": "4974", "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", "transfer-encoding": "chunked", "x-github-request-id": "97E1C718:1AD0:5492048:5641B377", "access-control-allow-credentials": "true", "last-modified": "Mon, 09 Nov 2015 14:38:22 GMT", "date": "Tue, 10 Nov 2015 09:06:00 GMT", "access-control-allow-origin": "*", "content-security-policy": "default-src 'none'", "content-encoding": "gzip", "strict-transport-security": "max-age=31536000; includeSubdomains; preload", "server": "GitHub.com", "x-ratelimit-limit": "5000", "x-frame-options": "deny", "content-type": "application/json; charset=utf-8", "x-ratelimit-reset": "1447148233"}, "status": {"message": "OK", "code": 200}, "url": "https://api.github.com/repos/sigmavirus24/github3.py/notifications?participating=false&per_page=100&all=true"}, "recorded_at": "2015-11-10T09:06:00"}, {"request": {"body": {"string": "", "encoding": "utf-8"}, "headers": {"Accept-Encoding": "gzip, deflate", "Accept": "application/vnd.github.v3.full+json", "User-Agent": "github3.py/1.0.0a2", "Accept-Charset": "utf-8", "Connection": "keep-alive", "Content-Type": "application/json", "Authorization": "token <AUTH_TOKEN>"}, "method": "GET", "uri": "https://api.github.com/notifications/threads/108656639/subscription"}, "response": {"body": {"string": "", "base64_string": "H4sIAAAAAAAAA6WOQQ6CMBBF7zJrpK0KkZ7DlRsylEInwZZ0pivj3S3RG7h8eT8v/wVcJnaZJj+DlVx8A7TGlA9ccOPK2SOnCBZYUPzoAsbVQwOuCvHziFLdWZvuZMxJD3ejbaetuT7qpuStyiCys1UKd2pXklCm1qWnikloIYdCKbKSUHszK6Nvfdf3l0H9ru2Hr63vYPwnCe8P8QGC6/EAAAA=", "encoding": "utf-8"}, "headers": {"vary": "Accept, Authorization, Cookie, X-GitHub-OTP", "x-github-media-type": "github.v3; param=full; format=json", "x-oauth-scopes": "gist, repo, user", "x-xss-protection": "1; mode=block", "x-content-type-options": "nosniff", "x-accepted-oauth-scopes": "notifications, repo", "etag": "W/\"fba7cc404e41e59d0374cea584dc6e52\"", "cache-control": "private, max-age=60, s-maxage=60", "status": "200 OK", "x-ratelimit-remaining": "4973", "x-served-by": "5aeb3f30c9e3ef6ef7bcbcddfd9a68f7", "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", "transfer-encoding": "chunked", "x-github-request-id": "97E1C718:1AD0:5492054:5641B378", "access-control-allow-credentials": "true", "date": "Tue, 10 Nov 2015 09:06:00 GMT", "access-control-allow-origin": "*", "content-security-policy": "default-src 'none'", "content-encoding": "gzip", "strict-transport-security": "max-age=31536000; includeSubdomains; preload", "server": "GitHub.com", "x-ratelimit-limit": "5000", "x-frame-options": "deny", "content-type": "application/json; charset=utf-8", "x-ratelimit-reset": "1447148233"}, "status": {"message": "OK", "code": 200}, "url": "https://api.github.com/notifications/threads/108656639/subscription"}, "recorded_at": "2015-11-10T09:06:00"}, {"request": {"body": {"string": "{\"ignored\": false, \"subscribed\": true}", "encoding": "utf-8"}, "headers": {"Content-Length": "38", "Accept-Encoding": "gzip, deflate", "Accept": "application/vnd.github.v3.full+json", "User-Agent": "github3.py/1.0.0a2", "Accept-Charset": "utf-8", "Connection": "keep-alive", "Content-Type": "application/json", "Authorization": "token <AUTH_TOKEN>"}, "method": "PUT", "uri": "https://api.github.com/notifications/threads/108656639/subscription"}, "response": {"body": {"string": "", "base64_string": "H4sIAAAAAAAAA6WOQQ6CMBBF7zJrpK0KkZ7DlRsylEInwZZ0pivj3S3RG7h8eT8v/wVcJnaZJj+DlVx8A7TGlA9ccOPK2SOnCBZYUPzoAsbVQwOuCvHziFLdWZvuZMxJD3ejbaetuT7qpuStyiCys1UKd2pXklCm1qWnikloIYdCKbKSUHszK6Nvfdf3l0H9ru2Hr63vYPwnCe8P8QGC6/EAAAA=", "encoding": "utf-8"}, "headers": {"vary": "Accept, Authorization, Cookie, X-GitHub-OTP", "x-github-media-type": "github.v3; param=full; format=json", "x-oauth-scopes": "gist, repo, user", "x-xss-protection": "1; mode=block", "x-content-type-options": "nosniff", "x-accepted-oauth-scopes": "notifications, repo", "etag": "W/\"fba7cc404e41e59d0374cea584dc6e52\"", "cache-control": "private, max-age=60, s-maxage=60", "status": "200 OK", "x-ratelimit-remaining": "4972", "x-served-by": "2811da37fbdda4367181b328b22b2499", "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", "transfer-encoding": "chunked", "x-github-request-id": "97E1C718:1AD0:549205C:5641B378", "access-control-allow-credentials": "true", "date": "Tue, 10 Nov 2015 09:06:00 GMT", "access-control-allow-origin": "*", "content-security-policy": "default-src 'none'", "content-encoding": "gzip", "strict-transport-security": "max-age=31536000; includeSubdomains; preload", "server": "GitHub.com", "x-ratelimit-limit": "5000", "x-frame-options": "deny", "content-type": "application/json; charset=utf-8", "x-ratelimit-reset": "1447148233"}, "status": {"message": "OK", "code": 200}, "url": "https://api.github.com/notifications/threads/108656639/subscription"}, "recorded_at": "2015-11-10T09:06:00"}], "recorded_with": "betamax/0.5.0"}

0 commit comments

Comments
 (0)
0