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

Commitcdb0f4b

Browse files
committed
Test Release#delete
1 parentf6a7034 commitcdb0f4b

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

‎tests/cassettes/Release_delete.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"http_interactions": [{"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": "token <AUTH_TOKEN>"}, "method": "GET", "uri": "https://api.github.com/repos/github3py/github3.py"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAA+2by46jOBSGX6UUqWczVSFcEpJIrZ7ezGU1vejZzCZywCRWE0DGVE01qnef3wbCpcskgYw0C6RWKSE+P4fj48v5cOcz5s+2jrNy1pb1OIvIic62swMTx2xvz5PX2eMsyMJw1/4heTVaTeKXiPLZNp+F8YFFtYCylzcw3bVlLlePM/JMBOG7jIdodRQiSbeGYc0PvPhh7sUno/ho2JsVtX26tG1rQfbBZr1c+hvT8nzb3zi2GXzyPyqBD/bnD9av+Md8GgnmxVE6L7yTargeLIlLTYssrLW5Cmxvs9gvfOI6zsby3b2Lx4wOP/GP/8DXyo+ddHp2yQMYtB+EJKxxayNLKU+rSKlYHMUp7Dx87WqrZRCHYfwC+07z/lsYZzPZcUqCRYchEjDLjVgcKToLj/Emg8NScaM7yiTHg6UCIZUiKbqfU/82l0ojOCQT7S03OE1ipZbtU4+zRDD0+o2aTVNIxfxAIvadDJCCaQoF6dSNTigTmNJnpO6NtoVNbiScPRPvVYaDU4+yZ0R3iF7HGHLiNZGzwZ+NyMiYM0F3xD/JgR6QMKVvjzPlg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wa6w4ZMTZK5Ite2aC9c0L6NwlP0n8sx4llpOGx79QMObTREweRvLWaxtTHDv8nDzXR7umc7aXq789SbYWEu62lig6ntKTX9jEy9wr+bhDnFNd+UsbMfzCV27rrN29tS1XHO9J0trpeXhlzzAs/UityILOtHon1Y6jW+i4q0eGgzG31EZw8Y7aTMCj7eU7kfI27JjIXlL7VZO3jK+fbppmd+Hlnc8atF2ZH8JzP8CxsO38aC8kyyNl3J3ZOUlsu8duUWponfnal6ukbgZmet0RlNznfC9wLlO/2Z2rhMais91encg6DrpYRBdpzaSo+tkx6B0neatNF2ngzJwBFDvUx3M1PtEh2H1PsXhZF2nOg6u61SH83Wd4ijErhNtonq5gN1G2XWqDZla9GrQfkFV6UD2Bi6uU+xicYwuQIqrEb5OVg7SrnTFs68BpDrdSmMUdNeJ34m76+Qrdj8MvetVFb0fRd912kMAvE7rPgxepz4Mw+vURpB4neRIGK+TvROP18n/F0hed68xVF6neQWYB1S3v5qb7XK9XSqirgPzaAMwv9z0gPmyiXMBzGu8vcTm+80u4Pl+47SP0GtMEaoOpD+/fsA7hzlegfg4quTHXipRvaFqQ8XqV2vrPVZv2jgq2aX16uIlXl8wb0nmb8T1zvJKXm86Z2AvbVrEXv5WI3vl8A/Q3seuP4wTxKDA9zXOr34Bm0/jjHsI0MTkJib3zpHa1jA8H3MdfF61M6onJlccy373jVArVhOTax6Un5jcu29E5BnWcSdZNatu6/Qq7jD4MKtOf2Jy1x5s1UVwYnLY50iOcO0hV10gJUSYmNygA6+6kE5MDqdycRpoYnLFWfSJyY05DqsbZYjqxOSMicmNOiOrS66JyS3M6iTsxOR+OIg1MTkch70bk4uoeMF/bKzO7Ur413xBWB77Nd/+BZQEUcRTPgAA", "encoding": "utf-8"}, "headers": {"status": "200 OK", "x-ratelimit-remaining": "4987", "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": "ADE50270:071C:3E23C06:528673A4", "content-encoding": "gzip", "vary": "Accept, Authorization, Cookie, X-GitHub-OTP, Accept-Encoding", "x-accepted-oauth-scopes": "repo, public_repo, repo:status, repo:deployment, delete_repo, site_admin", "server": "GitHub.com", "cache-control": "private, max-age=60, s-maxage=60", "last-modified": "Fri, 15 Nov 2013 03:02:46 GMT", "x-ratelimit-limit": "5000", "etag": "\"1e5d8a7bed040d92efc3cd2e2e65a2c7\"", "access-control-allow-credentials": "true", "date": "Fri, 15 Nov 2013 19:19:00 GMT", "x-oauth-scopes": "user, public_repo, repo, gist", "content-type": "application/json; charset=utf-8", "access-control-allow-origin": "*", "x-ratelimit-reset": "1384543951"}, "url": "https://api.github.com/repos/github3py/github3.py", "status_code": 200}, "recorded_at": "2013-11-15T19:19:00"}, {"request": {"body": "{\"body\": \"To be deleted\", \"name\": \"0.8.0 fake release\", \"target_commitish\": \"develop\", \"tag_name\": \"0.8.0.pre\", \"prerelease\": false, \"draft\": false}", "headers": {"Content-Length": "148", "Accept-Encoding": "gzip, deflate, compress", "Accept": "application/vnd.github.manifold-preview", "User-Agent": "github3.py/0.8.0", "Accept-Charset": "utf-8", "Content-Type": "application/json", "Authorization": "token <AUTH_TOKEN>"}, "method": "POST", "uri": "https://api.github.com/repos/github3py/github3.py/releases"}, "response": {"body": {"string": "{\"url\":\"https://api.github.com/repos/github3py/github3.py/releases/94853\",\"assets_url\":\"https://api.github.com/repos/github3py/github3.py/releases/94853/assets\",\"upload_url\":\"https://uploads.github.com/repos/github3py/github3.py/releases/94853/assets{?name}\",\"html_url\":\"https://github.com/github3py/github3.py/releases/0.8.0.pre\",\"id\":94853,\"tag_name\":\"0.8.0.pre\",\"target_commitish\":\"develop\",\"name\":\"0.8.0 fake release\",\"body\":\"To be deleted\",\"draft\":false,\"prerelease\":false,\"created_at\":\"2013-11-15T02:59:20Z\",\"published_at\":\"2013-11-15T19:19:00Z\",\"assets\":[],\"tarball_url\":\"https://api.github.com/repos/github3py/github3.py/tarball/0.8.0.pre\",\"zipball_url\":\"https://api.github.com/repos/github3py/github3.py/zipball/0.8.0.pre\"}", "encoding": "utf-8"}, "headers": {"status": "201 Created", "x-accepted-oauth-scopes": "repo, public_repo", "x-ratelimit-remaining": "4986", "x-github-media-type": "github.beta; param=manifold-preview", "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", "x-github-request-id": "ADE50270:071C:3E23C39:528673A4", "cache-control": "private, max-age=60, s-maxage=60", "vary": "Accept, Authorization, Cookie, X-GitHub-OTP", "content-length": "732", "server": "GitHub.com", "x-ratelimit-limit": "5000", "location": "https://api.github.com/repos/github3py/github3.py/releases/94853", "access-control-allow-credentials": "true", "date": "Fri, 15 Nov 2013 19:19:00 GMT", "x-oauth-scopes": "user, public_repo, repo, gist", "content-type": "application/json; charset=utf-8", "access-control-allow-origin": "*", "etag": "\"1a908151419a2c09e099aead7c68a73f\"", "x-ratelimit-reset": "1384543951"}, "url": "https://api.github.com/repos/github3py/github3.py/releases", "status_code": 201}, "recorded_at": "2013-11-15T19:19:00"}, {"request": {"body": "", "headers": {"Content-Length": "0", "Accept-Encoding": "gzip, deflate, compress", "Accept": "application/vnd.github.manifold-preview", "User-Agent": "github3.py/0.8.0", "Accept-Charset": "utf-8", "Content-Type": "application/json", "Authorization": "token <AUTH_TOKEN>"}, "method": "DELETE", "uri": "https://api.github.com/repos/github3py/github3.py/releases/94853"}, "response": {"body": {"string": "", "encoding": null}, "headers": {"status": "204 No Content", "x-ratelimit-remaining": "4985", "x-github-media-type": "github.beta; param=manifold-preview", "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", "x-github-request-id": "ADE50270:071C:3E23C7C:528673A4", "vary": "Accept-Encoding", "server": "GitHub.com", "x-ratelimit-limit": "5000", "access-control-allow-credentials": "true", "date": "Fri, 15 Nov 2013 19:19:00 GMT", "x-oauth-scopes": "user, public_repo, repo, gist", "x-accepted-oauth-scopes": "repo, public_repo", "access-control-allow-origin": "*", "x-ratelimit-reset": "1384543951"}, "url": "https://api.github.com/repos/github3py/github3.py/releases/94853", "status_code": 204}, "recorded_at": "2013-11-15T19:19:00"}], "recorded_with": "betamax"}

‎tests/integration/test_repos_release.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,19 @@
22

33

44
classTestRelease(IntegrationHelper):
5+
deftest_delete(self):
6+
"""Test the ability to delete a release"""
7+
self.token_login()
8+
cassette_name=self.cassette_name('delete')
9+
withself.recorder.use_cassette(cassette_name):
10+
repository=self.gh.repository('github3py','github3.py')
11+
release=repository.create_release(
12+
'0.8.0.pre','develop','0.8.0 fake release',
13+
'To be deleted'
14+
)
15+
assertreleaseisnotNone
16+
assertrelease.delete()isTrue
17+
518
deftest_edit(self):
619
"""Test the ability to edit a release on a repository."""
720
self.token_login()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp