{"action":"created","comment":{"url":"https://api.github.com/repos/2gis/contesto/pulls/comments/58034480","id":58034480,"diff_hunk":"@@ -0,0 +1,196 @@\n+# -*- coding: utf-8 -*-\n+from functools import wraps\n+from contesto.utils.log import log\n+\n+\n+def on_test_error():","path":"contesto/handlers.py","position":6,"original_position":6,"commit_id":"2b852c99ad93123db2f79b4ef83ef2c0f1d669b4","original_commit_id":"2b852c99ad93123db2f79b4ef83ef2c0f1d669b4","user":{"login":"NickAb","id":866739,"avatar_url":"https://avatars.githubusercontent.com/u/866739?v=3","gravatar_id":"","url":"https://api.github.com/users/NickAb","html_url":"https://github.com/NickAb","followers_url":"https://api.github.com/users/NickAb/followers","following_url":"https://api.github.com/users/NickAb/following{/other_user}","gists_url":"https://api.github.com/users/NickAb/gists{/gist_id}","starred_url":"https://api.github.com/users/NickAb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickAb/subscriptions","organizations_url":"https://api.github.com/users/NickAb/orgs","repos_url":"https://api.github.com/users/NickAb/repos","events_url":"https://api.github.com/users/NickAb/events{/privacy}","received_events_url":"https://api.github.com/users/NickAb/received_events","type":"User","site_admin":false},"body":"Почему эти вещи определены как декораторы? Чтобы можно было к одному конкретному тесты довесить свой декоратор? Из-за этого [выше](https://github.com/2gis/contesto/pull/84/files#diff-67807cddcd80a20224fb80a637c93e64R64) совсем странно код выглядит","created_at":"2016-03-31T10:48:30Z","updated_at":"2016-03-31T10:48:30Z","html_url":"https://github.com/2gis/contesto/pull/84#discussion_r58034480","pull_request_url":"https://api.github.com/repos/2gis/contesto/pulls/84","_links":{"self":{"href":"https://api.github.com/repos/2gis/contesto/pulls/comments/58034480"},"html":{"href":"https://github.com/2gis/contesto/pull/84#discussion_r58034480"},"pull_request":{"href":"https://api.github.com/repos/2gis/contesto/pulls/84"}}},"pull_request":{"url":"https://api.github.com/repos/2gis/contesto/pulls/84","id":64430045,"html_url":"https://github.com/2gis/contesto/pull/84","diff_url":"https://github.com/2gis/contesto/pull/84.diff","patch_url":"https://github.com/2gis/contesto/pull/84.patch","issue_url":"https://api.github.com/repos/2gis/contesto/issues/84","number":84,"state":"open","locked":false,"title":"event-handlers","user":{"login":"z00sts","id":5012880,"avatar_url":"https://avatars.githubusercontent.com/u/5012880?v=3","gravatar_id":"","url":"https://api.github.com/users/z00sts","html_url":"https://github.com/z00sts","followers_url":"https://api.github.com/users/z00sts/followers","following_url":"https://api.github.com/users/z00sts/following{/other_user}","gists_url":"https://api.github.com/users/z00sts/gists{/gist_id}","starred_url":"https://api.github.com/users/z00sts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z00sts/subscriptions","organizations_url":"https://api.github.com/users/z00sts/orgs","repos_url":"https://api.github.com/users/z00sts/repos","events_url":"https://api.github.com/users/z00sts/events{/privacy}","received_events_url":"https://api.github.com/users/z00sts/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-03-29T08:31:27Z","updated_at":"2016-03-31T10:48:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c85d8a7c75b7d3680c1daa3e78016ba98e4d5237","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/2gis/contesto/pulls/84/commits","review_comments_url":"https://api.github.com/repos/2gis/contesto/pulls/84/comments","review_comment_url":"https://api.github.com/repos/2gis/contesto/pulls/comments{/number}","comments_url":"https://api.github.com/repos/2gis/contesto/issues/84/comments","statuses_url":"https://api.github.com/repos/2gis/contesto/statuses/2b852c99ad93123db2f79b4ef83ef2c0f1d669b4","head":{"label":"z00sts:add-event-handlers","ref":"add-event-handlers","sha":"2b852c99ad93123db2f79b4ef83ef2c0f1d669b4","user":{"login":"z00sts","id":5012880,"avatar_url":"https://avatars.githubusercontent.com/u/5012880?v=3","gravatar_id":"","url":"https://api.github.com/users/z00sts","html_url":"https://github.com/z00sts","followers_url":"https://api.github.com/users/z00sts/followers","following_url":"https://api.github.com/users/z00sts/following{/other_user}","gists_url":"https://api.github.com/users/z00sts/gists{/gist_id}","starred_url":"https://api.github.com/users/z00sts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z00sts/subscriptions","organizations_url":"https://api.github.com/users/z00sts/orgs","repos_url":"https://api.github.com/users/z00sts/repos","events_url":"https://api.github.com/users/z00sts/events{/privacy}","received_events_url":"https://api.github.com/users/z00sts/received_events","type":"User","site_admin":false},"repo":{"id":54002664,"name":"contesto","full_name":"z00sts/contesto","owner":{"login":"z00sts","id":5012880,"avatar_url":"https://avatars.githubusercontent.com/u/5012880?v=3","gravatar_id":"","url":"https://api.github.com/users/z00sts","html_url":"https://github.com/z00sts","followers_url":"https://api.github.com/users/z00sts/followers","following_url":"https://api.github.com/users/z00sts/following{/other_user}","gists_url":"https://api.github.com/users/z00sts/gists{/gist_id}","starred_url":"https://api.github.com/users/z00sts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/z00sts/subscriptions","organizations_url":"https://api.github.com/users/z00sts/orgs","repos_url":"https://api.github.com/users/z00sts/repos","events_url":"https://api.github.com/users/z00sts/events{/privacy}","received_events_url":"https://api.github.com/users/z00sts/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/z00sts/contesto","description":"Framework for writing functional selenium-based tests","fork":true,"url":"https://api.github.com/repos/z00sts/contesto","forks_url":"https://api.github.com/repos/z00sts/contesto/forks","keys_url":"https://api.github.com/repos/z00sts/contesto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/z00sts/contesto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/z00sts/contesto/teams","hooks_url":"https://api.github.com/repos/z00sts/contesto/hooks","issue_events_url":"https://api.github.com/repos/z00sts/contesto/issues/events{/number}","events_url":"https://api.github.com/repos/z00sts/contesto/events","assignees_url":"https://api.github.com/repos/z00sts/contesto/assignees{/user}","branches_url":"https://api.github.com/repos/z00sts/contesto/branches{/branch}","tags_url":"https://api.github.com/repos/z00sts/contesto/tags","blobs_url":"https://api.github.com/repos/z00sts/contesto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/z00sts/contesto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/z00sts/contesto/git/refs{/sha}","trees_url":"https://api.github.com/repos/z00sts/contesto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/z00sts/contesto/statuses/{sha}","languages_url":"https://api.github.com/repos/z00sts/contesto/languages","stargazers_url":"https://api.github.com/repos/z00sts/contesto/stargazers","contributors_url":"https://api.github.com/repos/z00sts/contesto/contributors","subscribers_url":"https://api.github.com/repos/z00sts/contesto/subscribers","subscription_url":"https://api.github.com/repos/z00sts/contesto/subscription","commits_url":"https://api.github.com/repos/z00sts/contesto/commits{/sha}","git_commits_url":"https://api.github.com/repos/z00sts/contesto/git/commits{/sha}","comments_url":"https://api.github.com/repos/z00sts/contesto/comments{/number}","issue_comment_url":"https://api.github.com/repos/z00sts/contesto/issues/comments{/number}","contents_url":"https://api.github.com/repos/z00sts/contesto/contents/{+path}","compare_url":"https://api.github.com/repos/z00sts/contesto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/z00sts/contesto/merges","archive_url":"https://api.github.com/repos/z00sts/contesto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/z00sts/contesto/downloads","issues_url":"https://api.github.com/repos/z00sts/contesto/issues{/number}","pulls_url":"https://api.github.com/repos/z00sts/contesto/pulls{/number}","milestones_url":"https://api.github.com/repos/z00sts/contesto/milestones{/number}","notifications_url":"https://api.github.com/repos/z00sts/contesto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/z00sts/contesto/labels{/name}","releases_url":"https://api.github.com/repos/z00sts/contesto/releases{/id}","deployments_url":"https://api.github.com/repos/z00sts/contesto/deployments","created_at":"2016-03-16T05:12:45Z","updated_at":"2016-03-16T05:12:46Z","pushed_at":"2016-03-30T09:49:22Z","git_url":"git://github.com/z00sts/contesto.git","ssh_url":"git@github.com:z00sts/contesto.git","clone_url":"https://github.com/z00sts/contesto.git","svn_url":"https://github.com/z00sts/contesto","homepage":"","size":158,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"2gis:master","ref":"master","sha":"8e1864733e9ec26db5a4aa649ce73c2f8121907a","user":{"login":"2gis","id":1481435,"avatar_url":"https://avatars.githubusercontent.com/u/1481435?v=3","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"repo":{"id":10542597,"name":"contesto","full_name":"2gis/contesto","owner":{"login":"2gis","id":1481435,"avatar_url":"https://avatars.githubusercontent.com/u/1481435?v=3","gravatar_id":"","url":"https://api.github.com/users/2gis","html_url":"https://github.com/2gis","followers_url":"https://api.github.com/users/2gis/followers","following_url":"https://api.github.com/users/2gis/following{/other_user}","gists_url":"https://api.github.com/users/2gis/gists{/gist_id}","starred_url":"https://api.github.com/users/2gis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/2gis/subscriptions","organizations_url":"https://api.github.com/users/2gis/orgs","repos_url":"https://api.github.com/users/2gis/repos","events_url":"https://api.github.com/users/2gis/events{/privacy}","received_events_url":"https://api.github.com/users/2gis/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/2gis/contesto","description":"Framework for writing functional selenium-based tests","fork":false,"url":"https://api.github.com/repos/2gis/contesto","forks_url":"https://api.github.com/repos/2gis/contesto/forks","keys_url":"https://api.github.com/repos/2gis/contesto/keys{/key_id}","collaborators_url":"https://api.github.com/repos/2gis/contesto/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/2gis/contesto/teams","hooks_url":"https://api.github.com/repos/2gis/contesto/hooks","issue_events_url":"https://api.github.com/repos/2gis/contesto/issues/events{/number}","events_url":"https://api.github.com/repos/2gis/contesto/events","assignees_url":"https://api.github.com/repos/2gis/contesto/assignees{/user}","branches_url":"https://api.github.com/repos/2gis/contesto/branches{/branch}","tags_url":"https://api.github.com/repos/2gis/contesto/tags","blobs_url":"https://api.github.com/repos/2gis/contesto/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/2gis/contesto/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/2gis/contesto/git/refs{/sha}","trees_url":"https://api.github.com/repos/2gis/contesto/git/trees{/sha}","statuses_url":"https://api.github.com/repos/2gis/contesto/statuses/{sha}","languages_url":"https://api.github.com/repos/2gis/contesto/languages","stargazers_url":"https://api.github.com/repos/2gis/contesto/stargazers","contributors_url":"https://api.github.com/repos/2gis/contesto/contributors","subscribers_url":"https://api.github.com/repos/2gis/contesto/subscribers","subscription_url":"https://api.github.com/repos/2gis/contesto/subscription","commits_url":"https://api.github.com/repos/2gis/contesto/commits{/sha}","git_commits_url":"https://api.github.com/repos/2gis/contesto/git/commits{/sha}","comments_url":"https://api.github.com/repos/2gis/contesto/comments{/number}","issue_comment_url":"https://api.github.com/repos/2gis/contesto/issues/comments{/number}","contents_url":"https://api.github.com/repos/2gis/contesto/contents/{+path}","compare_url":"https://api.github.com/repos/2gis/contesto/compare/{base}...{head}","merges_url":"https://api.github.com/repos/2gis/contesto/merges","archive_url":"https://api.github.com/repos/2gis/contesto/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/2gis/contesto/downloads","issues_url":"https://api.github.com/repos/2gis/contesto/issues{/number}","pulls_url":"https://api.github.com/repos/2gis/contesto/pulls{/number}","milestones_url":"https://api.github.com/repos/2gis/contesto/milestones{/number}","notifications_url":"https://api.github.com/repos/2gis/contesto/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/2gis/contesto/labels{/name}","releases_url":"https://api.github.com/repos/2gis/contesto/releases{/id}","deployments_url":"https://api.github.com/repos/2gis/contesto/deployments","created_at":"2013-06-07T04:45:06Z","updated_at":"2016-03-03T14:56:19Z","pushed_at":"2016-03-30T13:00:29Z","git_url":"git://github.com/2gis/contesto.git","ssh_url":"git@github.com:2gis/contesto.git","clone_url":"https://github.com/2gis/contesto.git","svn_url":"https://github.com/2gis/contesto","homepage":"","size":169,"stargazers_count":6,"watchers_count":6,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":5,"mirror_url":null,"open_issues_count":7,"forks":5,"open_issues":7,"watchers":6,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/2gis/contesto/pulls/84"},"html":{"href":"https://github.com/2gis/contesto/pull/84"},"issue":{"href":"https://api.github.com/repos/2gis/contesto/issues/84"},"comments":{"href":"https://api.github.com/repos/2gis/contesto/issues/84/comments"},"review_comments":{"href":"https://api.github.com/repos/2gis/contesto/pulls/84/comments"},"review_comment":{"href":"https://api.github.com/repos/2gis/contesto/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/2gis/contesto/pulls/84/commits"},"statuses":{"href":"https://api.github.com/repos/2gis/contesto/statuses/2b852c99ad93123db2f79b4ef83ef2c0f1d669b4"}}}}