{"action":"created","comment":{"url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/pulls/comments/155650209","pull_request_review_id":82004790,"id":155650209,"diff_hunk":"@@ -7,10 +7,16 @@\n import pytest\n \n \n-def test_submit_online():\n+@pytest.fixture\n+def httpbin():\n+    from utils import HttpbinWrapper\n+    return HttpbinWrapper()","path":"tests/test_browser.py","position":8,"original_position":8,"commit_id":"75c807c8b0480a347bb64e11037b506cbb4398ec","original_commit_id":"75c807c8b0480a347bb64e11037b506cbb4398ec","user":{"login":"moy","id":14709,"avatar_url":"https://avatars0.githubusercontent.com/u/14709?v=4","gravatar_id":"","url":"https://api.github.com/users/moy","html_url":"https://github.com/moy","followers_url":"https://api.github.com/users/moy/followers","following_url":"https://api.github.com/users/moy/following{/other_user}","gists_url":"https://api.github.com/users/moy/gists{/gist_id}","starred_url":"https://api.github.com/users/moy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moy/subscriptions","organizations_url":"https://api.github.com/users/moy/orgs","repos_url":"https://api.github.com/users/moy/repos","events_url":"https://api.github.com/users/moy/events{/privacy}","received_events_url":"https://api.github.com/users/moy/received_events","type":"User","site_admin":false},"body":"Oh, and could this become a conditional code that would actually do the pytest-httpbin thing when it works, and fall back to HttpbinWrapper if not?","created_at":"2017-12-07T21:45:30Z","updated_at":"2017-12-07T21:45:30Z","html_url":"https://github.com/MechanicalSoup/MechanicalSoup/pull/173#discussion_r155650209","pull_request_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/pulls/173","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/pulls/comments/155650209"},"html":{"href":"https://github.com/MechanicalSoup/MechanicalSoup/pull/173#discussion_r155650209"},"pull_request":{"href":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/pulls/173"}},"in_reply_to_id":155649801},"pull_request":{"url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/pulls/173","id":157104740,"html_url":"https://github.com/MechanicalSoup/MechanicalSoup/pull/173","diff_url":"https://github.com/MechanicalSoup/MechanicalSoup/pull/173.diff","patch_url":"https://github.com/MechanicalSoup/MechanicalSoup/pull/173.patch","issue_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/issues/173","number":173,"state":"open","locked":false,"title":"Add pytest fixture to prepare for pytest-httpbin","user":{"login":"hemberger","id":846186,"avatar_url":"https://avatars1.githubusercontent.com/u/846186?v=4","gravatar_id":"","url":"https://api.github.com/users/hemberger","html_url":"https://github.com/hemberger","followers_url":"https://api.github.com/users/hemberger/followers","following_url":"https://api.github.com/users/hemberger/following{/other_user}","gists_url":"https://api.github.com/users/hemberger/gists{/gist_id}","starred_url":"https://api.github.com/users/hemberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hemberger/subscriptions","organizations_url":"https://api.github.com/users/hemberger/orgs","repos_url":"https://api.github.com/users/hemberger/repos","events_url":"https://api.github.com/users/hemberger/events{/privacy}","received_events_url":"https://api.github.com/users/hemberger/received_events","type":"User","site_admin":false},"body":"We add a testing utils class `HttpbinWrapper`, which is simply\r\na drop-in replacement for the `httpbin` fixture that pytest-httpbin\r\nprovides.\r\n\r\nThis will allow us to write tests in the style of pytest-httpbin\r\nuntil we can merge PR #164 into master.","created_at":"2017-12-07T21:21:38Z","updated_at":"2017-12-07T21:45:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e11a96a384e356e9cd883c798347a2d1da9f297f","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/pulls/173/commits","review_comments_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/pulls/173/comments","review_comment_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/pulls/comments{/number}","comments_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/issues/173/comments","statuses_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/statuses/75c807c8b0480a347bb64e11037b506cbb4398ec","head":{"label":"hemberger:pre-httpbin","ref":"pre-httpbin","sha":"75c807c8b0480a347bb64e11037b506cbb4398ec","user":{"login":"hemberger","id":846186,"avatar_url":"https://avatars1.githubusercontent.com/u/846186?v=4","gravatar_id":"","url":"https://api.github.com/users/hemberger","html_url":"https://github.com/hemberger","followers_url":"https://api.github.com/users/hemberger/followers","following_url":"https://api.github.com/users/hemberger/following{/other_user}","gists_url":"https://api.github.com/users/hemberger/gists{/gist_id}","starred_url":"https://api.github.com/users/hemberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hemberger/subscriptions","organizations_url":"https://api.github.com/users/hemberger/orgs","repos_url":"https://api.github.com/users/hemberger/repos","events_url":"https://api.github.com/users/hemberger/events{/privacy}","received_events_url":"https://api.github.com/users/hemberger/received_events","type":"User","site_admin":false},"repo":{"id":103104347,"name":"MechanicalSoup","full_name":"hemberger/MechanicalSoup","owner":{"login":"hemberger","id":846186,"avatar_url":"https://avatars1.githubusercontent.com/u/846186?v=4","gravatar_id":"","url":"https://api.github.com/users/hemberger","html_url":"https://github.com/hemberger","followers_url":"https://api.github.com/users/hemberger/followers","following_url":"https://api.github.com/users/hemberger/following{/other_user}","gists_url":"https://api.github.com/users/hemberger/gists{/gist_id}","starred_url":"https://api.github.com/users/hemberger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hemberger/subscriptions","organizations_url":"https://api.github.com/users/hemberger/orgs","repos_url":"https://api.github.com/users/hemberger/repos","events_url":"https://api.github.com/users/hemberger/events{/privacy}","received_events_url":"https://api.github.com/users/hemberger/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/hemberger/MechanicalSoup","description":"A Python library for automating interaction with websites.","fork":true,"url":"https://api.github.com/repos/hemberger/MechanicalSoup","forks_url":"https://api.github.com/repos/hemberger/MechanicalSoup/forks","keys_url":"https://api.github.com/repos/hemberger/MechanicalSoup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hemberger/MechanicalSoup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hemberger/MechanicalSoup/teams","hooks_url":"https://api.github.com/repos/hemberger/MechanicalSoup/hooks","issue_events_url":"https://api.github.com/repos/hemberger/MechanicalSoup/issues/events{/number}","events_url":"https://api.github.com/repos/hemberger/MechanicalSoup/events","assignees_url":"https://api.github.com/repos/hemberger/MechanicalSoup/assignees{/user}","branches_url":"https://api.github.com/repos/hemberger/MechanicalSoup/branches{/branch}","tags_url":"https://api.github.com/repos/hemberger/MechanicalSoup/tags","blobs_url":"https://api.github.com/repos/hemberger/MechanicalSoup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hemberger/MechanicalSoup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hemberger/MechanicalSoup/git/refs{/sha}","trees_url":"https://api.github.com/repos/hemberger/MechanicalSoup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hemberger/MechanicalSoup/statuses/{sha}","languages_url":"https://api.github.com/repos/hemberger/MechanicalSoup/languages","stargazers_url":"https://api.github.com/repos/hemberger/MechanicalSoup/stargazers","contributors_url":"https://api.github.com/repos/hemberger/MechanicalSoup/contributors","subscribers_url":"https://api.github.com/repos/hemberger/MechanicalSoup/subscribers","subscription_url":"https://api.github.com/repos/hemberger/MechanicalSoup/subscription","commits_url":"https://api.github.com/repos/hemberger/MechanicalSoup/commits{/sha}","git_commits_url":"https://api.github.com/repos/hemberger/MechanicalSoup/git/commits{/sha}","comments_url":"https://api.github.com/repos/hemberger/MechanicalSoup/comments{/number}","issue_comment_url":"https://api.github.com/repos/hemberger/MechanicalSoup/issues/comments{/number}","contents_url":"https://api.github.com/repos/hemberger/MechanicalSoup/contents/{+path}","compare_url":"https://api.github.com/repos/hemberger/MechanicalSoup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hemberger/MechanicalSoup/merges","archive_url":"https://api.github.com/repos/hemberger/MechanicalSoup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hemberger/MechanicalSoup/downloads","issues_url":"https://api.github.com/repos/hemberger/MechanicalSoup/issues{/number}","pulls_url":"https://api.github.com/repos/hemberger/MechanicalSoup/pulls{/number}","milestones_url":"https://api.github.com/repos/hemberger/MechanicalSoup/milestones{/number}","notifications_url":"https://api.github.com/repos/hemberger/MechanicalSoup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hemberger/MechanicalSoup/labels{/name}","releases_url":"https://api.github.com/repos/hemberger/MechanicalSoup/releases{/id}","deployments_url":"https://api.github.com/repos/hemberger/MechanicalSoup/deployments","created_at":"2017-09-11T07:32:40Z","updated_at":"2017-09-11T07:32:41Z","pushed_at":"2017-12-07T21:30:35Z","git_url":"git://github.com/hemberger/MechanicalSoup.git","ssh_url":"git@github.com:hemberger/MechanicalSoup.git","clone_url":"https://github.com/hemberger/MechanicalSoup.git","svn_url":"https://github.com/hemberger/MechanicalSoup","homepage":"","size":315,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"MechanicalSoup:master","ref":"master","sha":"ce224b8af39501deb980fd4ecb09a6e6759ab86c","user":{"login":"MechanicalSoup","id":32498875,"avatar_url":"https://avatars2.githubusercontent.com/u/32498875?v=4","gravatar_id":"","url":"https://api.github.com/users/MechanicalSoup","html_url":"https://github.com/MechanicalSoup","followers_url":"https://api.github.com/users/MechanicalSoup/followers","following_url":"https://api.github.com/users/MechanicalSoup/following{/other_user}","gists_url":"https://api.github.com/users/MechanicalSoup/gists{/gist_id}","starred_url":"https://api.github.com/users/MechanicalSoup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MechanicalSoup/subscriptions","organizations_url":"https://api.github.com/users/MechanicalSoup/orgs","repos_url":"https://api.github.com/users/MechanicalSoup/repos","events_url":"https://api.github.com/users/MechanicalSoup/events{/privacy}","received_events_url":"https://api.github.com/users/MechanicalSoup/received_events","type":"Organization","site_admin":false},"repo":{"id":20180433,"name":"MechanicalSoup","full_name":"MechanicalSoup/MechanicalSoup","owner":{"login":"MechanicalSoup","id":32498875,"avatar_url":"https://avatars2.githubusercontent.com/u/32498875?v=4","gravatar_id":"","url":"https://api.github.com/users/MechanicalSoup","html_url":"https://github.com/MechanicalSoup","followers_url":"https://api.github.com/users/MechanicalSoup/followers","following_url":"https://api.github.com/users/MechanicalSoup/following{/other_user}","gists_url":"https://api.github.com/users/MechanicalSoup/gists{/gist_id}","starred_url":"https://api.github.com/users/MechanicalSoup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MechanicalSoup/subscriptions","organizations_url":"https://api.github.com/users/MechanicalSoup/orgs","repos_url":"https://api.github.com/users/MechanicalSoup/repos","events_url":"https://api.github.com/users/MechanicalSoup/events{/privacy}","received_events_url":"https://api.github.com/users/MechanicalSoup/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/MechanicalSoup/MechanicalSoup","description":"A Python library for automating interaction with websites.","fork":false,"url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup","forks_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/forks","keys_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/keys{/key_id}","collaborators_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/teams","hooks_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/hooks","issue_events_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/issues/events{/number}","events_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/events","assignees_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/assignees{/user}","branches_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/branches{/branch}","tags_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/tags","blobs_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/git/refs{/sha}","trees_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/git/trees{/sha}","statuses_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/statuses/{sha}","languages_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/languages","stargazers_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/stargazers","contributors_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/contributors","subscribers_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/subscribers","subscription_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/subscription","commits_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/commits{/sha}","git_commits_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/git/commits{/sha}","comments_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/comments{/number}","issue_comment_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/issues/comments{/number}","contents_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/contents/{+path}","compare_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/compare/{base}...{head}","merges_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/merges","archive_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/downloads","issues_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/issues{/number}","pulls_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/pulls{/number}","milestones_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/milestones{/number}","notifications_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/labels{/name}","releases_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/releases{/id}","deployments_url":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/deployments","created_at":"2014-05-26T09:06:11Z","updated_at":"2017-12-07T17:49:28Z","pushed_at":"2017-12-07T21:32:43Z","git_url":"git://github.com/MechanicalSoup/MechanicalSoup.git","ssh_url":"git@github.com:MechanicalSoup/MechanicalSoup.git","clone_url":"https://github.com/MechanicalSoup/MechanicalSoup.git","svn_url":"https://github.com/MechanicalSoup/MechanicalSoup","homepage":"http://mechanicalsoup.readthedocs.io/en/stable/","size":303,"stargazers_count":2174,"watchers_count":2174,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":125,"mirror_url":null,"archived":false,"open_issues_count":14,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":125,"open_issues":14,"watchers":2174,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/pulls/173"},"html":{"href":"https://github.com/MechanicalSoup/MechanicalSoup/pull/173"},"issue":{"href":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/issues/173"},"comments":{"href":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/issues/173/comments"},"review_comments":{"href":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/pulls/173/comments"},"review_comment":{"href":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/pulls/173/commits"},"statuses":{"href":"https://api.github.com/repos/MechanicalSoup/MechanicalSoup/statuses/75c807c8b0480a347bb64e11037b506cbb4398ec"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"moy"}}