{"action":"created","comment":{"url":"https://api.github.com/repos/opbeat/opbeat_python/pulls/comments/34128443","id":34128443,"diff_hunk":"@@ -0,0 +1,287 @@\n+from __future__ import absolute_import\n+import sys\n+\n+from optparse import make_option\n+from django.conf import settings\n+from django.core.management.base import BaseCommand, CommandError\n+from django.core.management.color import color_style\n+from django.utils import termcolors\n+\n+from opbeat.contrib.django.models import get_client_config, get_client_class\n+\n+\n+blue = termcolors.make_style(opts=('bold',), fg='blue')\n+cyan = termcolors.make_style(opts=('bold',), fg='cyan')\n+green = termcolors.make_style(fg='green')\n+magenta = termcolors.make_style(opts=('bold',), fg='magenta')\n+red = termcolors.make_style(opts=('bold',), fg='red')\n+white = termcolors.make_style(opts=('bold',), fg='white')\n+yellow = termcolors.make_style(opts=('bold',), fg='yellow')\n+\n+\n+class OpbeatTestException(Exception):\n+    pass\n+\n+\n+class Logger(object):","path":"opbeat/contrib/django/management/commands/opbeat.py","position":26,"original_position":26,"commit_id":"522084d0aad1e9ea436850e49dcde8101f9a0da6","original_commit_id":"522084d0aad1e9ea436850e49dcde8101f9a0da6","user":{"login":"piquadrat","id":93675,"avatar_url":"https://avatars.githubusercontent.com/u/93675?v=3","gravatar_id":"","url":"https://api.github.com/users/piquadrat","html_url":"https://github.com/piquadrat","followers_url":"https://api.github.com/users/piquadrat/followers","following_url":"https://api.github.com/users/piquadrat/following{/other_user}","gists_url":"https://api.github.com/users/piquadrat/gists{/gist_id}","starred_url":"https://api.github.com/users/piquadrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piquadrat/subscriptions","organizations_url":"https://api.github.com/users/piquadrat/orgs","repos_url":"https://api.github.com/users/piquadrat/repos","events_url":"https://api.github.com/users/piquadrat/events{/privacy}","received_events_url":"https://api.github.com/users/piquadrat/received_events","type":"User","site_admin":false},"body":":+1: but I'll go with :us: instead of :gb: ;)","created_at":"2015-07-08T09:04:55Z","updated_at":"2015-07-08T09:04:55Z","html_url":"https://github.com/opbeat/opbeat_python/pull/35#discussion_r34128443","pull_request_url":"https://api.github.com/repos/opbeat/opbeat_python/pulls/35","_links":{"self":{"href":"https://api.github.com/repos/opbeat/opbeat_python/pulls/comments/34128443"},"html":{"href":"https://github.com/opbeat/opbeat_python/pull/35#discussion_r34128443"},"pull_request":{"href":"https://api.github.com/repos/opbeat/opbeat_python/pulls/35"}}},"pull_request":{"url":"https://api.github.com/repos/opbeat/opbeat_python/pulls/35","id":34416765,"html_url":"https://github.com/opbeat/opbeat_python/pull/35","diff_url":"https://github.com/opbeat/opbeat_python/pull/35.diff","patch_url":"https://github.com/opbeat/opbeat_python/pull/35.patch","issue_url":"https://api.github.com/repos/opbeat/opbeat_python/issues/35","number":35,"state":"open","locked":false,"title":"django test command [WIP]","user":{"login":"piquadrat","id":93675,"avatar_url":"https://avatars.githubusercontent.com/u/93675?v=3","gravatar_id":"","url":"https://api.github.com/users/piquadrat","html_url":"https://github.com/piquadrat","followers_url":"https://api.github.com/users/piquadrat/followers","following_url":"https://api.github.com/users/piquadrat/following{/other_user}","gists_url":"https://api.github.com/users/piquadrat/gists{/gist_id}","starred_url":"https://api.github.com/users/piquadrat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/piquadrat/subscriptions","organizations_url":"https://api.github.com/users/piquadrat/orgs","repos_url":"https://api.github.com/users/piquadrat/repos","events_url":"https://api.github.com/users/piquadrat/events{/privacy}","received_events_url":"https://api.github.com/users/piquadrat/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-04-29T23:39:44Z","updated_at":"2015-07-08T09:04:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0df660821c37b0e35953bce999a911549ddbcc11","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/opbeat/opbeat_python/pulls/35/commits","review_comments_url":"https://api.github.com/repos/opbeat/opbeat_python/pulls/35/comments","review_comment_url":"https://api.github.com/repos/opbeat/opbeat_python/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opbeat/opbeat_python/issues/35/comments","statuses_url":"https://api.github.com/repos/opbeat/opbeat_python/statuses/522084d0aad1e9ea436850e49dcde8101f9a0da6","head":{"label":"opbeat:feature/django-test-command","ref":"feature/django-test-command","sha":"522084d0aad1e9ea436850e49dcde8101f9a0da6","user":{"login":"opbeat","id":1669860,"avatar_url":"https://avatars.githubusercontent.com/u/1669860?v=3","gravatar_id":"","url":"https://api.github.com/users/opbeat","html_url":"https://github.com/opbeat","followers_url":"https://api.github.com/users/opbeat/followers","following_url":"https://api.github.com/users/opbeat/following{/other_user}","gists_url":"https://api.github.com/users/opbeat/gists{/gist_id}","starred_url":"https://api.github.com/users/opbeat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opbeat/subscriptions","organizations_url":"https://api.github.com/users/opbeat/orgs","repos_url":"https://api.github.com/users/opbeat/repos","events_url":"https://api.github.com/users/opbeat/events{/privacy}","received_events_url":"https://api.github.com/users/opbeat/received_events","type":"Organization","site_admin":false},"repo":{"id":4938133,"name":"opbeat_python","full_name":"opbeat/opbeat_python","owner":{"login":"opbeat","id":1669860,"avatar_url":"https://avatars.githubusercontent.com/u/1669860?v=3","gravatar_id":"","url":"https://api.github.com/users/opbeat","html_url":"https://github.com/opbeat","followers_url":"https://api.github.com/users/opbeat/followers","following_url":"https://api.github.com/users/opbeat/following{/other_user}","gists_url":"https://api.github.com/users/opbeat/gists{/gist_id}","starred_url":"https://api.github.com/users/opbeat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opbeat/subscriptions","organizations_url":"https://api.github.com/users/opbeat/orgs","repos_url":"https://api.github.com/users/opbeat/repos","events_url":"https://api.github.com/users/opbeat/events{/privacy}","received_events_url":"https://api.github.com/users/opbeat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opbeat/opbeat_python","description":"Python agent for Opbeat.","fork":false,"url":"https://api.github.com/repos/opbeat/opbeat_python","forks_url":"https://api.github.com/repos/opbeat/opbeat_python/forks","keys_url":"https://api.github.com/repos/opbeat/opbeat_python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opbeat/opbeat_python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opbeat/opbeat_python/teams","hooks_url":"https://api.github.com/repos/opbeat/opbeat_python/hooks","issue_events_url":"https://api.github.com/repos/opbeat/opbeat_python/issues/events{/number}","events_url":"https://api.github.com/repos/opbeat/opbeat_python/events","assignees_url":"https://api.github.com/repos/opbeat/opbeat_python/assignees{/user}","branches_url":"https://api.github.com/repos/opbeat/opbeat_python/branches{/branch}","tags_url":"https://api.github.com/repos/opbeat/opbeat_python/tags","blobs_url":"https://api.github.com/repos/opbeat/opbeat_python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opbeat/opbeat_python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opbeat/opbeat_python/git/refs{/sha}","trees_url":"https://api.github.com/repos/opbeat/opbeat_python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opbeat/opbeat_python/statuses/{sha}","languages_url":"https://api.github.com/repos/opbeat/opbeat_python/languages","stargazers_url":"https://api.github.com/repos/opbeat/opbeat_python/stargazers","contributors_url":"https://api.github.com/repos/opbeat/opbeat_python/contributors","subscribers_url":"https://api.github.com/repos/opbeat/opbeat_python/subscribers","subscription_url":"https://api.github.com/repos/opbeat/opbeat_python/subscription","commits_url":"https://api.github.com/repos/opbeat/opbeat_python/commits{/sha}","git_commits_url":"https://api.github.com/repos/opbeat/opbeat_python/git/commits{/sha}","comments_url":"https://api.github.com/repos/opbeat/opbeat_python/comments{/number}","issue_comment_url":"https://api.github.com/repos/opbeat/opbeat_python/issues/comments{/number}","contents_url":"https://api.github.com/repos/opbeat/opbeat_python/contents/{+path}","compare_url":"https://api.github.com/repos/opbeat/opbeat_python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opbeat/opbeat_python/merges","archive_url":"https://api.github.com/repos/opbeat/opbeat_python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opbeat/opbeat_python/downloads","issues_url":"https://api.github.com/repos/opbeat/opbeat_python/issues{/number}","pulls_url":"https://api.github.com/repos/opbeat/opbeat_python/pulls{/number}","milestones_url":"https://api.github.com/repos/opbeat/opbeat_python/milestones{/number}","notifications_url":"https://api.github.com/repos/opbeat/opbeat_python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opbeat/opbeat_python/labels{/name}","releases_url":"https://api.github.com/repos/opbeat/opbeat_python/releases{/id}","created_at":"2012-07-07T14:01:51Z","updated_at":"2015-07-06T12:29:05Z","pushed_at":"2015-07-08T08:47:19Z","git_url":"git://github.com/opbeat/opbeat_python.git","ssh_url":"git@github.com:opbeat/opbeat_python.git","clone_url":"https://github.com/opbeat/opbeat_python.git","svn_url":"https://github.com/opbeat/opbeat_python","homepage":"","size":4773,"stargazers_count":20,"watchers_count":20,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":6,"forks":9,"open_issues":6,"watchers":20,"default_branch":"master"}},"base":{"label":"opbeat:master","ref":"master","sha":"dc20df751c88e94af8e5ac6fb1e2eebcede4c47e","user":{"login":"opbeat","id":1669860,"avatar_url":"https://avatars.githubusercontent.com/u/1669860?v=3","gravatar_id":"","url":"https://api.github.com/users/opbeat","html_url":"https://github.com/opbeat","followers_url":"https://api.github.com/users/opbeat/followers","following_url":"https://api.github.com/users/opbeat/following{/other_user}","gists_url":"https://api.github.com/users/opbeat/gists{/gist_id}","starred_url":"https://api.github.com/users/opbeat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opbeat/subscriptions","organizations_url":"https://api.github.com/users/opbeat/orgs","repos_url":"https://api.github.com/users/opbeat/repos","events_url":"https://api.github.com/users/opbeat/events{/privacy}","received_events_url":"https://api.github.com/users/opbeat/received_events","type":"Organization","site_admin":false},"repo":{"id":4938133,"name":"opbeat_python","full_name":"opbeat/opbeat_python","owner":{"login":"opbeat","id":1669860,"avatar_url":"https://avatars.githubusercontent.com/u/1669860?v=3","gravatar_id":"","url":"https://api.github.com/users/opbeat","html_url":"https://github.com/opbeat","followers_url":"https://api.github.com/users/opbeat/followers","following_url":"https://api.github.com/users/opbeat/following{/other_user}","gists_url":"https://api.github.com/users/opbeat/gists{/gist_id}","starred_url":"https://api.github.com/users/opbeat/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opbeat/subscriptions","organizations_url":"https://api.github.com/users/opbeat/orgs","repos_url":"https://api.github.com/users/opbeat/repos","events_url":"https://api.github.com/users/opbeat/events{/privacy}","received_events_url":"https://api.github.com/users/opbeat/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opbeat/opbeat_python","description":"Python agent for Opbeat.","fork":false,"url":"https://api.github.com/repos/opbeat/opbeat_python","forks_url":"https://api.github.com/repos/opbeat/opbeat_python/forks","keys_url":"https://api.github.com/repos/opbeat/opbeat_python/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opbeat/opbeat_python/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opbeat/opbeat_python/teams","hooks_url":"https://api.github.com/repos/opbeat/opbeat_python/hooks","issue_events_url":"https://api.github.com/repos/opbeat/opbeat_python/issues/events{/number}","events_url":"https://api.github.com/repos/opbeat/opbeat_python/events","assignees_url":"https://api.github.com/repos/opbeat/opbeat_python/assignees{/user}","branches_url":"https://api.github.com/repos/opbeat/opbeat_python/branches{/branch}","tags_url":"https://api.github.com/repos/opbeat/opbeat_python/tags","blobs_url":"https://api.github.com/repos/opbeat/opbeat_python/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opbeat/opbeat_python/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opbeat/opbeat_python/git/refs{/sha}","trees_url":"https://api.github.com/repos/opbeat/opbeat_python/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opbeat/opbeat_python/statuses/{sha}","languages_url":"https://api.github.com/repos/opbeat/opbeat_python/languages","stargazers_url":"https://api.github.com/repos/opbeat/opbeat_python/stargazers","contributors_url":"https://api.github.com/repos/opbeat/opbeat_python/contributors","subscribers_url":"https://api.github.com/repos/opbeat/opbeat_python/subscribers","subscription_url":"https://api.github.com/repos/opbeat/opbeat_python/subscription","commits_url":"https://api.github.com/repos/opbeat/opbeat_python/commits{/sha}","git_commits_url":"https://api.github.com/repos/opbeat/opbeat_python/git/commits{/sha}","comments_url":"https://api.github.com/repos/opbeat/opbeat_python/comments{/number}","issue_comment_url":"https://api.github.com/repos/opbeat/opbeat_python/issues/comments{/number}","contents_url":"https://api.github.com/repos/opbeat/opbeat_python/contents/{+path}","compare_url":"https://api.github.com/repos/opbeat/opbeat_python/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opbeat/opbeat_python/merges","archive_url":"https://api.github.com/repos/opbeat/opbeat_python/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opbeat/opbeat_python/downloads","issues_url":"https://api.github.com/repos/opbeat/opbeat_python/issues{/number}","pulls_url":"https://api.github.com/repos/opbeat/opbeat_python/pulls{/number}","milestones_url":"https://api.github.com/repos/opbeat/opbeat_python/milestones{/number}","notifications_url":"https://api.github.com/repos/opbeat/opbeat_python/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opbeat/opbeat_python/labels{/name}","releases_url":"https://api.github.com/repos/opbeat/opbeat_python/releases{/id}","created_at":"2012-07-07T14:01:51Z","updated_at":"2015-07-06T12:29:05Z","pushed_at":"2015-07-08T08:47:19Z","git_url":"git://github.com/opbeat/opbeat_python.git","ssh_url":"git@github.com:opbeat/opbeat_python.git","clone_url":"https://github.com/opbeat/opbeat_python.git","svn_url":"https://github.com/opbeat/opbeat_python","homepage":"","size":4773,"stargazers_count":20,"watchers_count":20,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":6,"forks":9,"open_issues":6,"watchers":20,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/opbeat/opbeat_python/pulls/35"},"html":{"href":"https://github.com/opbeat/opbeat_python/pull/35"},"issue":{"href":"https://api.github.com/repos/opbeat/opbeat_python/issues/35"},"comments":{"href":"https://api.github.com/repos/opbeat/opbeat_python/issues/35/comments"},"review_comments":{"href":"https://api.github.com/repos/opbeat/opbeat_python/pulls/35/comments"},"review_comment":{"href":"https://api.github.com/repos/opbeat/opbeat_python/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opbeat/opbeat_python/pulls/35/commits"},"statuses":{"href":"https://api.github.com/repos/opbeat/opbeat_python/statuses/522084d0aad1e9ea436850e49dcde8101f9a0da6"}}}}