{"action":"created","comment":{"url":"https://api.github.com/repos/gtagency/buzzmobile/pulls/comments/87697976","pull_request_review_id":8302177,"id":87697976,"diff_hunk":"@@ -1,55 +1,21 @@\n-import rostest\n import unittest\n-import rospy\n-import time\n from std_msgs.msg import String\n-import roslaunch\n+from tests import rostest_utils\n \n-PKG = 'buzzmobile'\n NAME = 'test_inputer'\n \n \n+@rostest_utils.with_roscore\n class TestInputer(unittest.TestCase):\n \n-    def run_node_with_callback(self, callback):\n-        rospy.init_node(NAME, anonymous=True)\n-\n-        rospy.Subscriber('destination', String, callback)\n-        timeout = time.time() + 2.0\n-\n-        while time.time() < timeout and not rospy.is_shutdown():\n-            time.sleep(0.1)\n-\n-    def __init__(self, *args):\n-        super().__init__(*args)\n-\n-\n     def setUp(self):\n         self.success = False\n-        node = roslaunch.core.Node('buzzmobile', 'inputer.py')\n-        launch = roslaunch.scriptapi.ROSLaunch()\n-        launch.start()\n-        self.process = launch.launch(node)\n-\n-    def test_inputer_no_input(self):\n-        def cb(data):\n-            self.success = (data.data == '')\n-\n-        self.run_node_with_callback(cb)\n-        assert self.success\n \n+    @rostest_utils.launch_node('buzzmobile', 'inputer.py', 'params.launch')","path":"buzzmobile/tests/sense/test_inputer.py","position":43,"original_position":43,"commit_id":"3ad9749b9f812d8e1f5317e1978e3325652e1f92","original_commit_id":"3ad9749b9f812d8e1f5317e1978e3325652e1f92","user":{"login":"iRapha","id":7386247,"avatar_url":"https://avatars.githubusercontent.com/u/7386247?v=3","gravatar_id":"","url":"https://api.github.com/users/iRapha","html_url":"https://github.com/iRapha","followers_url":"https://api.github.com/users/iRapha/followers","following_url":"https://api.github.com/users/iRapha/following{/other_user}","gists_url":"https://api.github.com/users/iRapha/gists{/gist_id}","starred_url":"https://api.github.com/users/iRapha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iRapha/subscriptions","organizations_url":"https://api.github.com/users/iRapha/orgs","repos_url":"https://api.github.com/users/iRapha/repos","events_url":"https://api.github.com/users/iRapha/events{/privacy}","received_events_url":"https://api.github.com/users/iRapha/received_events","type":"User","site_admin":false},"body":"Alternatively, we could have something like `with_launch`, just like `with_roscore`","created_at":"2016-11-12T18:49:13Z","updated_at":"2016-11-12T18:49:31Z","html_url":"https://github.com/gtagency/buzzmobile/pull/121#discussion_r87697976","pull_request_url":"https://api.github.com/repos/gtagency/buzzmobile/pulls/121","_links":{"self":{"href":"https://api.github.com/repos/gtagency/buzzmobile/pulls/comments/87697976"},"html":{"href":"https://github.com/gtagency/buzzmobile/pull/121#discussion_r87697976"},"pull_request":{"href":"https://api.github.com/repos/gtagency/buzzmobile/pulls/121"}}},"pull_request":{"url":"https://api.github.com/repos/gtagency/buzzmobile/pulls/121","id":93424978,"html_url":"https://github.com/gtagency/buzzmobile/pull/121","diff_url":"https://github.com/gtagency/buzzmobile/pull/121.diff","patch_url":"https://github.com/gtagency/buzzmobile/pull/121.patch","issue_url":"https://api.github.com/repos/gtagency/buzzmobile/issues/121","number":121,"state":"open","locked":false,"title":"Rostest","user":{"login":"joshuamorton","id":5044224,"avatar_url":"https://avatars.githubusercontent.com/u/5044224?v=3","gravatar_id":"","url":"https://api.github.com/users/joshuamorton","html_url":"https://github.com/joshuamorton","followers_url":"https://api.github.com/users/joshuamorton/followers","following_url":"https://api.github.com/users/joshuamorton/following{/other_user}","gists_url":"https://api.github.com/users/joshuamorton/gists{/gist_id}","starred_url":"https://api.github.com/users/joshuamorton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joshuamorton/subscriptions","organizations_url":"https://api.github.com/users/joshuamorton/orgs","repos_url":"https://api.github.com/users/joshuamorton/repos","events_url":"https://api.github.com/users/joshuamorton/events{/privacy}","received_events_url":"https://api.github.com/users/joshuamorton/received_events","type":"User","site_admin":false},"body":"Please tell me what to explain and comment on.","created_at":"2016-11-12T02:36:16Z","updated_at":"2016-11-12T18:49:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"236a9c47264a5218868197fab3f9f146e25f2929","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/gtagency/buzzmobile/pulls/121/commits","review_comments_url":"https://api.github.com/repos/gtagency/buzzmobile/pulls/121/comments","review_comment_url":"https://api.github.com/repos/gtagency/buzzmobile/pulls/comments{/number}","comments_url":"https://api.github.com/repos/gtagency/buzzmobile/issues/121/comments","statuses_url":"https://api.github.com/repos/gtagency/buzzmobile/statuses/3ad9749b9f812d8e1f5317e1978e3325652e1f92","head":{"label":"gtagency:rostest","ref":"rostest","sha":"3ad9749b9f812d8e1f5317e1978e3325652e1f92","user":{"login":"gtagency","id":3228622,"avatar_url":"https://avatars.githubusercontent.com/u/3228622?v=3","gravatar_id":"","url":"https://api.github.com/users/gtagency","html_url":"https://github.com/gtagency","followers_url":"https://api.github.com/users/gtagency/followers","following_url":"https://api.github.com/users/gtagency/following{/other_user}","gists_url":"https://api.github.com/users/gtagency/gists{/gist_id}","starred_url":"https://api.github.com/users/gtagency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtagency/subscriptions","organizations_url":"https://api.github.com/users/gtagency/orgs","repos_url":"https://api.github.com/users/gtagency/repos","events_url":"https://api.github.com/users/gtagency/events{/privacy}","received_events_url":"https://api.github.com/users/gtagency/received_events","type":"Organization","site_admin":false},"repo":{"id":53988135,"name":"buzzmobile","full_name":"gtagency/buzzmobile","owner":{"login":"gtagency","id":3228622,"avatar_url":"https://avatars.githubusercontent.com/u/3228622?v=3","gravatar_id":"","url":"https://api.github.com/users/gtagency","html_url":"https://github.com/gtagency","followers_url":"https://api.github.com/users/gtagency/followers","following_url":"https://api.github.com/users/gtagency/following{/other_user}","gists_url":"https://api.github.com/users/gtagency/gists{/gist_id}","starred_url":"https://api.github.com/users/gtagency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtagency/subscriptions","organizations_url":"https://api.github.com/users/gtagency/orgs","repos_url":"https://api.github.com/users/gtagency/repos","events_url":"https://api.github.com/users/gtagency/events{/privacy}","received_events_url":"https://api.github.com/users/gtagency/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gtagency/buzzmobile","description":"An autonomous parade float/vehicle","fork":false,"url":"https://api.github.com/repos/gtagency/buzzmobile","forks_url":"https://api.github.com/repos/gtagency/buzzmobile/forks","keys_url":"https://api.github.com/repos/gtagency/buzzmobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gtagency/buzzmobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gtagency/buzzmobile/teams","hooks_url":"https://api.github.com/repos/gtagency/buzzmobile/hooks","issue_events_url":"https://api.github.com/repos/gtagency/buzzmobile/issues/events{/number}","events_url":"https://api.github.com/repos/gtagency/buzzmobile/events","assignees_url":"https://api.github.com/repos/gtagency/buzzmobile/assignees{/user}","branches_url":"https://api.github.com/repos/gtagency/buzzmobile/branches{/branch}","tags_url":"https://api.github.com/repos/gtagency/buzzmobile/tags","blobs_url":"https://api.github.com/repos/gtagency/buzzmobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gtagency/buzzmobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gtagency/buzzmobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/gtagency/buzzmobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gtagency/buzzmobile/statuses/{sha}","languages_url":"https://api.github.com/repos/gtagency/buzzmobile/languages","stargazers_url":"https://api.github.com/repos/gtagency/buzzmobile/stargazers","contributors_url":"https://api.github.com/repos/gtagency/buzzmobile/contributors","subscribers_url":"https://api.github.com/repos/gtagency/buzzmobile/subscribers","subscription_url":"https://api.github.com/repos/gtagency/buzzmobile/subscription","commits_url":"https://api.github.com/repos/gtagency/buzzmobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/gtagency/buzzmobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/gtagency/buzzmobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/gtagency/buzzmobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/gtagency/buzzmobile/contents/{+path}","compare_url":"https://api.github.com/repos/gtagency/buzzmobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gtagency/buzzmobile/merges","archive_url":"https://api.github.com/repos/gtagency/buzzmobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gtagency/buzzmobile/downloads","issues_url":"https://api.github.com/repos/gtagency/buzzmobile/issues{/number}","pulls_url":"https://api.github.com/repos/gtagency/buzzmobile/pulls{/number}","milestones_url":"https://api.github.com/repos/gtagency/buzzmobile/milestones{/number}","notifications_url":"https://api.github.com/repos/gtagency/buzzmobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gtagency/buzzmobile/labels{/name}","releases_url":"https://api.github.com/repos/gtagency/buzzmobile/releases{/id}","deployments_url":"https://api.github.com/repos/gtagency/buzzmobile/deployments","created_at":"2016-03-16T00:23:47Z","updated_at":"2016-10-22T15:42:58Z","pushed_at":"2016-11-12T03:46:21Z","git_url":"git://github.com/gtagency/buzzmobile.git","ssh_url":"git@github.com:gtagency/buzzmobile.git","clone_url":"https://github.com/gtagency/buzzmobile.git","svn_url":"https://github.com/gtagency/buzzmobile","homepage":null,"size":33079,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":30,"forks":0,"open_issues":30,"watchers":2,"default_branch":"master"}},"base":{"label":"gtagency:master","ref":"master","sha":"feda1a2687a915d5b06fc231d5b52229ab97bd5b","user":{"login":"gtagency","id":3228622,"avatar_url":"https://avatars.githubusercontent.com/u/3228622?v=3","gravatar_id":"","url":"https://api.github.com/users/gtagency","html_url":"https://github.com/gtagency","followers_url":"https://api.github.com/users/gtagency/followers","following_url":"https://api.github.com/users/gtagency/following{/other_user}","gists_url":"https://api.github.com/users/gtagency/gists{/gist_id}","starred_url":"https://api.github.com/users/gtagency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtagency/subscriptions","organizations_url":"https://api.github.com/users/gtagency/orgs","repos_url":"https://api.github.com/users/gtagency/repos","events_url":"https://api.github.com/users/gtagency/events{/privacy}","received_events_url":"https://api.github.com/users/gtagency/received_events","type":"Organization","site_admin":false},"repo":{"id":53988135,"name":"buzzmobile","full_name":"gtagency/buzzmobile","owner":{"login":"gtagency","id":3228622,"avatar_url":"https://avatars.githubusercontent.com/u/3228622?v=3","gravatar_id":"","url":"https://api.github.com/users/gtagency","html_url":"https://github.com/gtagency","followers_url":"https://api.github.com/users/gtagency/followers","following_url":"https://api.github.com/users/gtagency/following{/other_user}","gists_url":"https://api.github.com/users/gtagency/gists{/gist_id}","starred_url":"https://api.github.com/users/gtagency/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gtagency/subscriptions","organizations_url":"https://api.github.com/users/gtagency/orgs","repos_url":"https://api.github.com/users/gtagency/repos","events_url":"https://api.github.com/users/gtagency/events{/privacy}","received_events_url":"https://api.github.com/users/gtagency/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/gtagency/buzzmobile","description":"An autonomous parade float/vehicle","fork":false,"url":"https://api.github.com/repos/gtagency/buzzmobile","forks_url":"https://api.github.com/repos/gtagency/buzzmobile/forks","keys_url":"https://api.github.com/repos/gtagency/buzzmobile/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gtagency/buzzmobile/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gtagency/buzzmobile/teams","hooks_url":"https://api.github.com/repos/gtagency/buzzmobile/hooks","issue_events_url":"https://api.github.com/repos/gtagency/buzzmobile/issues/events{/number}","events_url":"https://api.github.com/repos/gtagency/buzzmobile/events","assignees_url":"https://api.github.com/repos/gtagency/buzzmobile/assignees{/user}","branches_url":"https://api.github.com/repos/gtagency/buzzmobile/branches{/branch}","tags_url":"https://api.github.com/repos/gtagency/buzzmobile/tags","blobs_url":"https://api.github.com/repos/gtagency/buzzmobile/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gtagency/buzzmobile/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gtagency/buzzmobile/git/refs{/sha}","trees_url":"https://api.github.com/repos/gtagency/buzzmobile/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gtagency/buzzmobile/statuses/{sha}","languages_url":"https://api.github.com/repos/gtagency/buzzmobile/languages","stargazers_url":"https://api.github.com/repos/gtagency/buzzmobile/stargazers","contributors_url":"https://api.github.com/repos/gtagency/buzzmobile/contributors","subscribers_url":"https://api.github.com/repos/gtagency/buzzmobile/subscribers","subscription_url":"https://api.github.com/repos/gtagency/buzzmobile/subscription","commits_url":"https://api.github.com/repos/gtagency/buzzmobile/commits{/sha}","git_commits_url":"https://api.github.com/repos/gtagency/buzzmobile/git/commits{/sha}","comments_url":"https://api.github.com/repos/gtagency/buzzmobile/comments{/number}","issue_comment_url":"https://api.github.com/repos/gtagency/buzzmobile/issues/comments{/number}","contents_url":"https://api.github.com/repos/gtagency/buzzmobile/contents/{+path}","compare_url":"https://api.github.com/repos/gtagency/buzzmobile/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gtagency/buzzmobile/merges","archive_url":"https://api.github.com/repos/gtagency/buzzmobile/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gtagency/buzzmobile/downloads","issues_url":"https://api.github.com/repos/gtagency/buzzmobile/issues{/number}","pulls_url":"https://api.github.com/repos/gtagency/buzzmobile/pulls{/number}","milestones_url":"https://api.github.com/repos/gtagency/buzzmobile/milestones{/number}","notifications_url":"https://api.github.com/repos/gtagency/buzzmobile/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gtagency/buzzmobile/labels{/name}","releases_url":"https://api.github.com/repos/gtagency/buzzmobile/releases{/id}","deployments_url":"https://api.github.com/repos/gtagency/buzzmobile/deployments","created_at":"2016-03-16T00:23:47Z","updated_at":"2016-10-22T15:42:58Z","pushed_at":"2016-11-12T03:46:21Z","git_url":"git://github.com/gtagency/buzzmobile.git","ssh_url":"git@github.com:gtagency/buzzmobile.git","clone_url":"https://github.com/gtagency/buzzmobile.git","svn_url":"https://github.com/gtagency/buzzmobile","homepage":null,"size":33079,"stargazers_count":2,"watchers_count":2,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":30,"forks":0,"open_issues":30,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/gtagency/buzzmobile/pulls/121"},"html":{"href":"https://github.com/gtagency/buzzmobile/pull/121"},"issue":{"href":"https://api.github.com/repos/gtagency/buzzmobile/issues/121"},"comments":{"href":"https://api.github.com/repos/gtagency/buzzmobile/issues/121/comments"},"review_comments":{"href":"https://api.github.com/repos/gtagency/buzzmobile/pulls/121/comments"},"review_comment":{"href":"https://api.github.com/repos/gtagency/buzzmobile/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/gtagency/buzzmobile/pulls/121/commits"},"statuses":{"href":"https://api.github.com/repos/gtagency/buzzmobile/statuses/3ad9749b9f812d8e1f5317e1978e3325652e1f92"}}}}
{"actor":{"display_login":"iRapha"}}