{"action":"created","issue":{"url":"https://api.github.com/repos/donkirkby/live-py-plugin/issues/78","repository_url":"https://api.github.com/repos/donkirkby/live-py-plugin","labels_url":"https://api.github.com/repos/donkirkby/live-py-plugin/issues/78/labels{/name}","comments_url":"https://api.github.com/repos/donkirkby/live-py-plugin/issues/78/comments","events_url":"https://api.github.com/repos/donkirkby/live-py-plugin/issues/78/events","html_url":"https://github.com/donkirkby/live-py-plugin/issues/78","id":156415848,"number":78,"title":"Add a live_test template","user":{"login":"donkirkby","id":1639148,"avatar_url":"https://avatars.githubusercontent.com/u/1639148?v=3","gravatar_id":"","url":"https://api.github.com/users/donkirkby","html_url":"https://github.com/donkirkby","followers_url":"https://api.github.com/users/donkirkby/followers","following_url":"https://api.github.com/users/donkirkby/following{/other_user}","gists_url":"https://api.github.com/users/donkirkby/gists{/gist_id}","starred_url":"https://api.github.com/users/donkirkby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donkirkby/subscriptions","organizations_url":"https://api.github.com/users/donkirkby/orgs","repos_url":"https://api.github.com/users/donkirkby/repos","events_url":"https://api.github.com/users/donkirkby/events{/privacy}","received_events_url":"https://api.github.com/users/donkirkby/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/donkirkby/live-py-plugin/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/donkirkby/live-py-plugin/milestones/11","html_url":"https://github.com/donkirkby/live-py-plugin/milestones/Near%20future","labels_url":"https://api.github.com/repos/donkirkby/live-py-plugin/milestones/11/labels","id":1384630,"number":11,"title":"Near future","description":"","creator":{"login":"donkirkby","id":1639148,"avatar_url":"https://avatars.githubusercontent.com/u/1639148?v=3","gravatar_id":"","url":"https://api.github.com/users/donkirkby","html_url":"https://github.com/donkirkby","followers_url":"https://api.github.com/users/donkirkby/followers","following_url":"https://api.github.com/users/donkirkby/following{/other_user}","gists_url":"https://api.github.com/users/donkirkby/gists{/gist_id}","starred_url":"https://api.github.com/users/donkirkby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donkirkby/subscriptions","organizations_url":"https://api.github.com/users/donkirkby/orgs","repos_url":"https://api.github.com/users/donkirkby/repos","events_url":"https://api.github.com/users/donkirkby/events{/privacy}","received_events_url":"https://api.github.com/users/donkirkby/received_events","type":"User","site_admin":false},"open_issues":7,"closed_issues":0,"state":"open","created_at":"2015-10-30T04:24:14Z","updated_at":"2016-05-26T21:02:33Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2016-05-24T04:07:14Z","updated_at":"2016-06-17T06:20:32Z","closed_at":null,"body":"Here's my first attempt at a useful template:\n\n    if __name__ == '__live_coding__':\n        import unittest\n        from ${module}_test import ${TestClass}\n    \n        suite = unittest.TestSuite()\n        suite.addTest(${TestClass}(\"test_${method}\"))\n        test_results = unittest.TextTestRunner().run(suite)\n    \n        print(test_results.errors)\n        print(test_results.failures)"},"comment":{"url":"https://api.github.com/repos/donkirkby/live-py-plugin/issues/comments/226689518","html_url":"https://github.com/donkirkby/live-py-plugin/issues/78#issuecomment-226689518","issue_url":"https://api.github.com/repos/donkirkby/live-py-plugin/issues/78","id":226689518,"user":{"login":"donkirkby","id":1639148,"avatar_url":"https://avatars.githubusercontent.com/u/1639148?v=3","gravatar_id":"","url":"https://api.github.com/users/donkirkby","html_url":"https://github.com/donkirkby","followers_url":"https://api.github.com/users/donkirkby/followers","following_url":"https://api.github.com/users/donkirkby/following{/other_user}","gists_url":"https://api.github.com/users/donkirkby/gists{/gist_id}","starred_url":"https://api.github.com/users/donkirkby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/donkirkby/subscriptions","organizations_url":"https://api.github.com/users/donkirkby/orgs","repos_url":"https://api.github.com/users/donkirkby/repos","events_url":"https://api.github.com/users/donkirkby/events{/privacy}","received_events_url":"https://api.github.com/users/donkirkby/received_events","type":"User","site_admin":false},"created_at":"2016-06-17T06:20:31Z","updated_at":"2016-06-17T06:20:31Z","body":"Other possibilities:\n* Add another button that launches a live coding unit test. Buttons would then be: live coding, live unit test, live turtle, and stop live coding. Live unit test would be something like the Run and Debug buttons that can also be menus.\n* Make a call to a new method: `__live_coding_context__.run_unit_test('module.TestClass.test_method')` (I'm worried about loading the module as both `__main__` and as its file name.)\n* Use a special comment as a marker to launch a unit test."}}
{"actor":{"display_login":"donkirkby"}}