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

Commita811e1a

Browse files
committed
One more test
1 parenteb6153a commita811e1a

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

‎tests/json/branch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{"commit": {"committer": {"following_url": "https://api.github.com/users/sigmavirus24/following", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "url": "https://api.github.com/users/sigmavirus24", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "avatar_url": "https://secure.gravatar.com/avatar/c148356d89f925e692178bee1d93acf7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "gravatar_id": "c148356d89f925e692178bee1d93acf7", "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "login": "sigmavirus24", "type": "User", "id": 240830, "followers_url": "https://api.github.com/users/sigmavirus24/followers"}, "author": {"following_url": "https://api.github.com/users/sigmavirus24/following", "gists_url": "https://api.github.com/users/sigmavirus24/gists{/gist_id}", "organizations_url": "https://api.github.com/users/sigmavirus24/orgs", "url": "https://api.github.com/users/sigmavirus24", "events_url": "https://api.github.com/users/sigmavirus24/events{/privacy}", "subscriptions_url": "https://api.github.com/users/sigmavirus24/subscriptions", "avatar_url": "https://secure.gravatar.com/avatar/c148356d89f925e692178bee1d93acf7?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-user-420.png", "repos_url": "https://api.github.com/users/sigmavirus24/repos", "received_events_url": "https://api.github.com/users/sigmavirus24/received_events", "gravatar_id": "c148356d89f925e692178bee1d93acf7", "starred_url": "https://api.github.com/users/sigmavirus24/starred{/owner}{/repo}", "login": "sigmavirus24", "type": "User", "id": 240830, "followers_url": "https://api.github.com/users/sigmavirus24/followers"}, "url": "https://api.github.com/repos/sigmavirus24/github3.py/commits/a21ded00eb40383b7496c00b598555665b751e95", "comments_url": "https://api.github.com/repos/sigmavirus24/github3.py/commits/a21ded00eb40383b7496c00b598555665b751e95/comments", "sha": "a21ded00eb40383b7496c00b598555665b751e95", "parents": [{"url": "https://api.github.com/repos/sigmavirus24/github3.py/commits/5d8ef57b55797bb79b045e0107919e5ebbe5ee98", "sha": "5d8ef57b55797bb79b045e0107919e5ebbe5ee98"}], "commit": {"committer": {"date": "2012-11-22T03:38:47Z", "email": "graffatcolmingov@gmail.com", "name": "Ian Cordasco"}, "author": {"date": "2012-11-22T03:38:47Z", "email": "graffatcolmingov@gmail.com", "name": "Ian Cordasco"}, "url": "https://api.github.com/repos/sigmavirus24/github3.py/git/commits/a21ded00eb40383b7496c00b598555665b751e95", "tree": {"url": "https://api.github.com/repos/sigmavirus24/github3.py/git/trees/d49c1850effb6d95d2168d042395730116f642d4", "sha": "d49c1850effb6d95d2168d042395730116f642d4"}, "comment_count": 0, "message": "Upgrade development to 0.2"}}, "_links": {"self": "https://api.github.com/repos/sigmavirus24/github3.py/branches/master", "html": "https://github.com/sigmavirus24/github3.py/tree/master"}, "name": "master"}

‎tests/test_repos.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,12 @@ def test_blob(self):
3636
)
3737

3838
expect(self.repo.blob('3ceb856e2f14e9669fed6384e58c9a1590a2314f')
39-
).isinstance(github3.git.Blob)
39+
).isinstance(github3.git.Blob)
40+
self.mock_assertions()
41+
42+
deftest_branch(self):
43+
self.request.return_value=generate_response('branch',200)
44+
self.args= ('get',self.api+'branches/master')
45+
46+
expect(self.repo.branch('master')).isinstance(github3.repos.Branch)
4047
self.mock_assertions()

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp