{"action":"created","comment":{"url":"https://api.github.com/repos/DataDog/dd-trace-py/pulls/comments/236203185","pull_request_review_id":178227174,"id":236203185,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNjIwMzE4NQ==","diff_hunk":"@@ -0,0 +1,119 @@\n+import sys\n+\n+import wrapt\n+\n+\n+class PatchMixin(object):","path":"tests/contrib/patch.py","position":6,"original_position":6,"commit_id":"f9e87626a4be17a2cef3fb25ab1836eb86295b84","original_commit_id":"f9e87626a4be17a2cef3fb25ab1836eb86295b84","user":{"login":"Kyle-Verhoog","id":6321485,"node_id":"MDQ6VXNlcjYzMjE0ODU=","avatar_url":"https://avatars1.githubusercontent.com/u/6321485?v=4","gravatar_id":"","url":"https://api.github.com/users/Kyle-Verhoog","html_url":"https://github.com/Kyle-Verhoog","followers_url":"https://api.github.com/users/Kyle-Verhoog/followers","following_url":"https://api.github.com/users/Kyle-Verhoog/following{/other_user}","gists_url":"https://api.github.com/users/Kyle-Verhoog/gists{/gist_id}","starred_url":"https://api.github.com/users/Kyle-Verhoog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kyle-Verhoog/subscriptions","organizations_url":"https://api.github.com/users/Kyle-Verhoog/orgs","repos_url":"https://api.github.com/users/Kyle-Verhoog/repos","events_url":"https://api.github.com/users/Kyle-Verhoog/events{/privacy}","received_events_url":"https://api.github.com/users/Kyle-Verhoog/received_events","type":"User","site_admin":false},"body":"Yeah makes sense to separate in case the utilities are needed in a non-patch test-case scenario.","created_at":"2018-11-26T10:47:49Z","updated_at":"2018-11-26T10:47:49Z","html_url":"https://github.com/DataDog/dd-trace-py/pull/721#discussion_r236203185","pull_request_url":"https://api.github.com/repos/DataDog/dd-trace-py/pulls/721","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/DataDog/dd-trace-py/pulls/comments/236203185"},"html":{"href":"https://github.com/DataDog/dd-trace-py/pull/721#discussion_r236203185"},"pull_request":{"href":"https://api.github.com/repos/DataDog/dd-trace-py/pulls/721"}},"in_reply_to_id":234744777},"pull_request":{"url":"https://api.github.com/repos/DataDog/dd-trace-py/pulls/721","id":231935034,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxOTM1MDM0","html_url":"https://github.com/DataDog/dd-trace-py/pull/721","diff_url":"https://github.com/DataDog/dd-trace-py/pull/721.diff","patch_url":"https://github.com/DataDog/dd-trace-py/pull/721.patch","issue_url":"https://api.github.com/repos/DataDog/dd-trace-py/issues/721","number":721,"state":"open","locked":false,"title":"[tests] Add patch testing mixin","user":{"login":"Kyle-Verhoog","id":6321485,"node_id":"MDQ6VXNlcjYzMjE0ODU=","avatar_url":"https://avatars1.githubusercontent.com/u/6321485?v=4","gravatar_id":"","url":"https://api.github.com/users/Kyle-Verhoog","html_url":"https://github.com/Kyle-Verhoog","followers_url":"https://api.github.com/users/Kyle-Verhoog/followers","following_url":"https://api.github.com/users/Kyle-Verhoog/following{/other_user}","gists_url":"https://api.github.com/users/Kyle-Verhoog/gists{/gist_id}","starred_url":"https://api.github.com/users/Kyle-Verhoog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kyle-Verhoog/subscriptions","organizations_url":"https://api.github.com/users/Kyle-Verhoog/orgs","repos_url":"https://api.github.com/users/Kyle-Verhoog/repos","events_url":"https://api.github.com/users/Kyle-Verhoog/events{/privacy}","received_events_url":"https://api.github.com/users/Kyle-Verhoog/received_events","type":"User","site_admin":false},"body":"This PR adds a base patch testing base class. Each integration should implement this mixin and override the required methods to assert common patching functionality.","created_at":"2018-11-19T11:12:37Z","updated_at":"2018-11-26T10:47:49Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d3a408bd247220438a96b25f9f55f84282deac08","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":443003057,"node_id":"MDU6TGFiZWw0NDMwMDMwNTc=","url":"https://api.github.com/repos/DataDog/dd-trace-py/labels/dev/testing","name":"dev/testing","color":"c5def5","default":false}],"milestone":{"url":"https://api.github.com/repos/DataDog/dd-trace-py/milestones/30","html_url":"https://github.com/DataDog/dd-trace-py/milestone/30","labels_url":"https://api.github.com/repos/DataDog/dd-trace-py/milestones/30/labels","id":3834581,"node_id":"MDk6TWlsZXN0b25lMzgzNDU4MQ==","number":30,"title":"0.18.0","description":"","creator":{"login":"brettlangdon","id":1320353,"node_id":"MDQ6VXNlcjEzMjAzNTM=","avatar_url":"https://avatars0.githubusercontent.com/u/1320353?v=4","gravatar_id":"","url":"https://api.github.com/users/brettlangdon","html_url":"https://github.com/brettlangdon","followers_url":"https://api.github.com/users/brettlangdon/followers","following_url":"https://api.github.com/users/brettlangdon/following{/other_user}","gists_url":"https://api.github.com/users/brettlangdon/gists{/gist_id}","starred_url":"https://api.github.com/users/brettlangdon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brettlangdon/subscriptions","organizations_url":"https://api.github.com/users/brettlangdon/orgs","repos_url":"https://api.github.com/users/brettlangdon/repos","events_url":"https://api.github.com/users/brettlangdon/events{/privacy}","received_events_url":"https://api.github.com/users/brettlangdon/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":0,"state":"open","created_at":"2018-11-20T13:54:42Z","updated_at":"2018-11-21T16:08:49Z","due_on":null,"closed_at":null},"commits_url":"https://api.github.com/repos/DataDog/dd-trace-py/pulls/721/commits","review_comments_url":"https://api.github.com/repos/DataDog/dd-trace-py/pulls/721/comments","review_comment_url":"https://api.github.com/repos/DataDog/dd-trace-py/pulls/comments{/number}","comments_url":"https://api.github.com/repos/DataDog/dd-trace-py/issues/721/comments","statuses_url":"https://api.github.com/repos/DataDog/dd-trace-py/statuses/f9e87626a4be17a2cef3fb25ab1836eb86295b84","head":{"label":"DataDog:kyle-verhoog/patch-test-mixin","ref":"kyle-verhoog/patch-test-mixin","sha":"f9e87626a4be17a2cef3fb25ab1836eb86295b84","user":{"login":"DataDog","id":365230,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NTIzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/365230?v=4","gravatar_id":"","url":"https://api.github.com/users/DataDog","html_url":"https://github.com/DataDog","followers_url":"https://api.github.com/users/DataDog/followers","following_url":"https://api.github.com/users/DataDog/following{/other_user}","gists_url":"https://api.github.com/users/DataDog/gists{/gist_id}","starred_url":"https://api.github.com/users/DataDog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataDog/subscriptions","organizations_url":"https://api.github.com/users/DataDog/orgs","repos_url":"https://api.github.com/users/DataDog/repos","events_url":"https://api.github.com/users/DataDog/events{/privacy}","received_events_url":"https://api.github.com/users/DataDog/received_events","type":"Organization","site_admin":false},"repo":{"id":61572326,"node_id":"MDEwOlJlcG9zaXRvcnk2MTU3MjMyNg==","name":"dd-trace-py","full_name":"DataDog/dd-trace-py","private":false,"owner":{"login":"DataDog","id":365230,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NTIzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/365230?v=4","gravatar_id":"","url":"https://api.github.com/users/DataDog","html_url":"https://github.com/DataDog","followers_url":"https://api.github.com/users/DataDog/followers","following_url":"https://api.github.com/users/DataDog/following{/other_user}","gists_url":"https://api.github.com/users/DataDog/gists{/gist_id}","starred_url":"https://api.github.com/users/DataDog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataDog/subscriptions","organizations_url":"https://api.github.com/users/DataDog/orgs","repos_url":"https://api.github.com/users/DataDog/repos","events_url":"https://api.github.com/users/DataDog/events{/privacy}","received_events_url":"https://api.github.com/users/DataDog/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/DataDog/dd-trace-py","description":"Datadog Tracing Python Client","fork":false,"url":"https://api.github.com/repos/DataDog/dd-trace-py","forks_url":"https://api.github.com/repos/DataDog/dd-trace-py/forks","keys_url":"https://api.github.com/repos/DataDog/dd-trace-py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DataDog/dd-trace-py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DataDog/dd-trace-py/teams","hooks_url":"https://api.github.com/repos/DataDog/dd-trace-py/hooks","issue_events_url":"https://api.github.com/repos/DataDog/dd-trace-py/issues/events{/number}","events_url":"https://api.github.com/repos/DataDog/dd-trace-py/events","assignees_url":"https://api.github.com/repos/DataDog/dd-trace-py/assignees{/user}","branches_url":"https://api.github.com/repos/DataDog/dd-trace-py/branches{/branch}","tags_url":"https://api.github.com/repos/DataDog/dd-trace-py/tags","blobs_url":"https://api.github.com/repos/DataDog/dd-trace-py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DataDog/dd-trace-py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DataDog/dd-trace-py/git/refs{/sha}","trees_url":"https://api.github.com/repos/DataDog/dd-trace-py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DataDog/dd-trace-py/statuses/{sha}","languages_url":"https://api.github.com/repos/DataDog/dd-trace-py/languages","stargazers_url":"https://api.github.com/repos/DataDog/dd-trace-py/stargazers","contributors_url":"https://api.github.com/repos/DataDog/dd-trace-py/contributors","subscribers_url":"https://api.github.com/repos/DataDog/dd-trace-py/subscribers","subscription_url":"https://api.github.com/repos/DataDog/dd-trace-py/subscription","commits_url":"https://api.github.com/repos/DataDog/dd-trace-py/commits{/sha}","git_commits_url":"https://api.github.com/repos/DataDog/dd-trace-py/git/commits{/sha}","comments_url":"https://api.github.com/repos/DataDog/dd-trace-py/comments{/number}","issue_comment_url":"https://api.github.com/repos/DataDog/dd-trace-py/issues/comments{/number}","contents_url":"https://api.github.com/repos/DataDog/dd-trace-py/contents/{+path}","compare_url":"https://api.github.com/repos/DataDog/dd-trace-py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DataDog/dd-trace-py/merges","archive_url":"https://api.github.com/repos/DataDog/dd-trace-py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DataDog/dd-trace-py/downloads","issues_url":"https://api.github.com/repos/DataDog/dd-trace-py/issues{/number}","pulls_url":"https://api.github.com/repos/DataDog/dd-trace-py/pulls{/number}","milestones_url":"https://api.github.com/repos/DataDog/dd-trace-py/milestones{/number}","notifications_url":"https://api.github.com/repos/DataDog/dd-trace-py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DataDog/dd-trace-py/labels{/name}","releases_url":"https://api.github.com/repos/DataDog/dd-trace-py/releases{/id}","deployments_url":"https://api.github.com/repos/DataDog/dd-trace-py/deployments","created_at":"2016-06-20T18:52:23Z","updated_at":"2018-11-26T09:53:30Z","pushed_at":"2018-11-26T10:39:49Z","git_url":"git://github.com/DataDog/dd-trace-py.git","ssh_url":"git@github.com:DataDog/dd-trace-py.git","clone_url":"https://github.com/DataDog/dd-trace-py.git","svn_url":"https://github.com/DataDog/dd-trace-py","homepage":"http://pypi.datadoghq.com/trace/docs/","size":2655,"stargazers_count":89,"watchers_count":89,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":96,"mirror_url":null,"archived":false,"open_issues_count":67,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":96,"open_issues":67,"watchers":89,"default_branch":"master"}},"base":{"label":"DataDog:0.17-dev","ref":"0.17-dev","sha":"0e695caefcb51d1ef9dcbf7a4815f4ab5028cfe8","user":{"login":"DataDog","id":365230,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NTIzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/365230?v=4","gravatar_id":"","url":"https://api.github.com/users/DataDog","html_url":"https://github.com/DataDog","followers_url":"https://api.github.com/users/DataDog/followers","following_url":"https://api.github.com/users/DataDog/following{/other_user}","gists_url":"https://api.github.com/users/DataDog/gists{/gist_id}","starred_url":"https://api.github.com/users/DataDog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataDog/subscriptions","organizations_url":"https://api.github.com/users/DataDog/orgs","repos_url":"https://api.github.com/users/DataDog/repos","events_url":"https://api.github.com/users/DataDog/events{/privacy}","received_events_url":"https://api.github.com/users/DataDog/received_events","type":"Organization","site_admin":false},"repo":{"id":61572326,"node_id":"MDEwOlJlcG9zaXRvcnk2MTU3MjMyNg==","name":"dd-trace-py","full_name":"DataDog/dd-trace-py","private":false,"owner":{"login":"DataDog","id":365230,"node_id":"MDEyOk9yZ2FuaXphdGlvbjM2NTIzMA==","avatar_url":"https://avatars1.githubusercontent.com/u/365230?v=4","gravatar_id":"","url":"https://api.github.com/users/DataDog","html_url":"https://github.com/DataDog","followers_url":"https://api.github.com/users/DataDog/followers","following_url":"https://api.github.com/users/DataDog/following{/other_user}","gists_url":"https://api.github.com/users/DataDog/gists{/gist_id}","starred_url":"https://api.github.com/users/DataDog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DataDog/subscriptions","organizations_url":"https://api.github.com/users/DataDog/orgs","repos_url":"https://api.github.com/users/DataDog/repos","events_url":"https://api.github.com/users/DataDog/events{/privacy}","received_events_url":"https://api.github.com/users/DataDog/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/DataDog/dd-trace-py","description":"Datadog Tracing Python Client","fork":false,"url":"https://api.github.com/repos/DataDog/dd-trace-py","forks_url":"https://api.github.com/repos/DataDog/dd-trace-py/forks","keys_url":"https://api.github.com/repos/DataDog/dd-trace-py/keys{/key_id}","collaborators_url":"https://api.github.com/repos/DataDog/dd-trace-py/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/DataDog/dd-trace-py/teams","hooks_url":"https://api.github.com/repos/DataDog/dd-trace-py/hooks","issue_events_url":"https://api.github.com/repos/DataDog/dd-trace-py/issues/events{/number}","events_url":"https://api.github.com/repos/DataDog/dd-trace-py/events","assignees_url":"https://api.github.com/repos/DataDog/dd-trace-py/assignees{/user}","branches_url":"https://api.github.com/repos/DataDog/dd-trace-py/branches{/branch}","tags_url":"https://api.github.com/repos/DataDog/dd-trace-py/tags","blobs_url":"https://api.github.com/repos/DataDog/dd-trace-py/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/DataDog/dd-trace-py/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/DataDog/dd-trace-py/git/refs{/sha}","trees_url":"https://api.github.com/repos/DataDog/dd-trace-py/git/trees{/sha}","statuses_url":"https://api.github.com/repos/DataDog/dd-trace-py/statuses/{sha}","languages_url":"https://api.github.com/repos/DataDog/dd-trace-py/languages","stargazers_url":"https://api.github.com/repos/DataDog/dd-trace-py/stargazers","contributors_url":"https://api.github.com/repos/DataDog/dd-trace-py/contributors","subscribers_url":"https://api.github.com/repos/DataDog/dd-trace-py/subscribers","subscription_url":"https://api.github.com/repos/DataDog/dd-trace-py/subscription","commits_url":"https://api.github.com/repos/DataDog/dd-trace-py/commits{/sha}","git_commits_url":"https://api.github.com/repos/DataDog/dd-trace-py/git/commits{/sha}","comments_url":"https://api.github.com/repos/DataDog/dd-trace-py/comments{/number}","issue_comment_url":"https://api.github.com/repos/DataDog/dd-trace-py/issues/comments{/number}","contents_url":"https://api.github.com/repos/DataDog/dd-trace-py/contents/{+path}","compare_url":"https://api.github.com/repos/DataDog/dd-trace-py/compare/{base}...{head}","merges_url":"https://api.github.com/repos/DataDog/dd-trace-py/merges","archive_url":"https://api.github.com/repos/DataDog/dd-trace-py/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/DataDog/dd-trace-py/downloads","issues_url":"https://api.github.com/repos/DataDog/dd-trace-py/issues{/number}","pulls_url":"https://api.github.com/repos/DataDog/dd-trace-py/pulls{/number}","milestones_url":"https://api.github.com/repos/DataDog/dd-trace-py/milestones{/number}","notifications_url":"https://api.github.com/repos/DataDog/dd-trace-py/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/DataDog/dd-trace-py/labels{/name}","releases_url":"https://api.github.com/repos/DataDog/dd-trace-py/releases{/id}","deployments_url":"https://api.github.com/repos/DataDog/dd-trace-py/deployments","created_at":"2016-06-20T18:52:23Z","updated_at":"2018-11-26T09:53:30Z","pushed_at":"2018-11-26T10:39:49Z","git_url":"git://github.com/DataDog/dd-trace-py.git","ssh_url":"git@github.com:DataDog/dd-trace-py.git","clone_url":"https://github.com/DataDog/dd-trace-py.git","svn_url":"https://github.com/DataDog/dd-trace-py","homepage":"http://pypi.datadoghq.com/trace/docs/","size":2655,"stargazers_count":89,"watchers_count":89,"language":"Python","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":96,"mirror_url":null,"archived":false,"open_issues_count":67,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":96,"open_issues":67,"watchers":89,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/DataDog/dd-trace-py/pulls/721"},"html":{"href":"https://github.com/DataDog/dd-trace-py/pull/721"},"issue":{"href":"https://api.github.com/repos/DataDog/dd-trace-py/issues/721"},"comments":{"href":"https://api.github.com/repos/DataDog/dd-trace-py/issues/721/comments"},"review_comments":{"href":"https://api.github.com/repos/DataDog/dd-trace-py/pulls/721/comments"},"review_comment":{"href":"https://api.github.com/repos/DataDog/dd-trace-py/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/DataDog/dd-trace-py/pulls/721/commits"},"statuses":{"href":"https://api.github.com/repos/DataDog/dd-trace-py/statuses/f9e87626a4be17a2cef3fb25ab1836eb86295b84"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Kyle-Verhoog"}}