{"action":"created","issue":{"url":"https://api.github.com/repos/zulip/zulip/issues/1777","repository_url":"https://api.github.com/repos/zulip/zulip","labels_url":"https://api.github.com/repos/zulip/zulip/issues/1777/labels{/name}","comments_url":"https://api.github.com/repos/zulip/zulip/issues/1777/comments","events_url":"https://api.github.com/repos/zulip/zulip/issues/1777/events","html_url":"https://github.com/zulip/zulip/issues/1777","id":176316834,"number":1777,"title":"Test hooks refactor","user":{"login":"TomaszKolek","id":5993758,"avatar_url":"https://avatars.githubusercontent.com/u/5993758?v=3","gravatar_id":"","url":"https://api.github.com/users/TomaszKolek","html_url":"https://github.com/TomaszKolek","followers_url":"https://api.github.com/users/TomaszKolek/followers","following_url":"https://api.github.com/users/TomaszKolek/following{/other_user}","gists_url":"https://api.github.com/users/TomaszKolek/gists{/gist_id}","starred_url":"https://api.github.com/users/TomaszKolek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomaszKolek/subscriptions","organizations_url":"https://api.github.com/users/TomaszKolek/orgs","repos_url":"https://api.github.com/users/TomaszKolek/repos","events_url":"https://api.github.com/users/TomaszKolek/events{/privacy}","received_events_url":"https://api.github.com/users/TomaszKolek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-09-12T08:09:23Z","updated_at":"2016-09-18T17:57:51Z","closed_at":null,"body":"After some discussion, we'd like to split test_hooks file to a few files with one tested hook per one file. Before that, we'd like to think about some general changes to provide.\r\n\r\nIn general, simple cases (actually most of the hooks) are really easy to do using general \"framework\".\r\n\r\nOne case that @timabbott pointed out is:\r\n```\r\ndef test_function(self):\r\n      self.SOME_SETTING = False  # before it was true - we change it to do some stuff in another way than in other tests\r\n     do_some_stuff()\r\n     self.SOME_SETTING = True\r\n```\r\n\r\nMaybe we should create some decorator, with statement or something to make it simpler/easier.\r\n\r\nDiscussion is open ;-)\r\n"},"comment":{"url":"https://api.github.com/repos/zulip/zulip/issues/comments/247862721","html_url":"https://github.com/zulip/zulip/issues/1777#issuecomment-247862721","issue_url":"https://api.github.com/repos/zulip/zulip/issues/1777","id":247862721,"user":{"login":"TomaszKolek","id":5993758,"avatar_url":"https://avatars.githubusercontent.com/u/5993758?v=3","gravatar_id":"","url":"https://api.github.com/users/TomaszKolek","html_url":"https://github.com/TomaszKolek","followers_url":"https://api.github.com/users/TomaszKolek/followers","following_url":"https://api.github.com/users/TomaszKolek/following{/other_user}","gists_url":"https://api.github.com/users/TomaszKolek/gists{/gist_id}","starred_url":"https://api.github.com/users/TomaszKolek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TomaszKolek/subscriptions","organizations_url":"https://api.github.com/users/TomaszKolek/orgs","repos_url":"https://api.github.com/users/TomaszKolek/repos","events_url":"https://api.github.com/users/TomaszKolek/events{/privacy}","received_events_url":"https://api.github.com/users/TomaszKolek/received_events","type":"User","site_admin":false},"created_at":"2016-09-18T17:57:51Z","updated_at":"2016-09-18T17:57:51Z","body":"Hm... sounds good!"}}
{"actor":{"display_login":"TomaszKolek"}}