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

Commit1a24e7e

Browse files
committed
Failing test around PRsigmavirus24#176
1 parent9cb2209 commit1a24e7e

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-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/gitignore/templates/i_donut_exist"}, "response": {"body": {"base64_string": "H4sIAAAAAAAAAw3JMQ6AIAwAwK+YzoYObjzA0S8YhAZIgBIoLMa/y3i5FzL1bjyBhotlO3kUBzs4tiNTESORyz1aWh9EqkZ0NClxpaZ8lDAeZTnjPHAp+sKNEL4fOPZsP1cAAAA=", "encoding": "utf-8"}, "headers": {"status": "404 Not Found", "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, X-Poll-Interval", "transfer-encoding": "chunked", "x-github-request-id": "48A0D797:2C4B:ACB731:52ADCC42", "content-encoding": "gzip", "server": "GitHub.com", "x-ratelimit-limit": "60", "access-control-allow-credentials": "true", "date": "Sun, 15 Dec 2013 15:35:30 GMT", "access-control-allow-origin": "*", "content-type": "application/json; charset=utf-8", "x-ratelimit-reset": "1387125330"}, "url": "https://api.github.com/gitignore/templates/i_donut_exist", "status_code": 404}, "recorded_at": "2013-12-15T15:34:52"}], "recorded_with": "betamax"}

‎tests/integration/test_github.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,15 @@ def test_gitignore_template(self):
9090
asserttisnotNone
9191
assertt!=''
9292

93+
deftest_non_existent_gitignore_template(self):
94+
"""Test the ability to retrieve a single gitignore template"""
95+
cassette_name=self.cassette_name('non_existent_gitignore_template')
96+
withself.recorder.use_cassette(cassette_name):
97+
t=self.gh.gitignore_template('i_donut_exist')
98+
99+
asserttisnotNone
100+
assertt==''
101+
93102
deftest_gitignore_templates(self):
94103
"""Test the ability to retrieve a list of gitignore templates"""
95104
cassette_name=self.cassette_name('gitignore_templates')

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp