{"action":"created","issue":{"url":"https://api.github.com/repos/Yelp/Testify/issues/311","labels_url":"https://api.github.com/repos/Yelp/Testify/issues/311/labels{/name}","comments_url":"https://api.github.com/repos/Yelp/Testify/issues/311/comments","events_url":"https://api.github.com/repos/Yelp/Testify/issues/311/events","html_url":"https://github.com/Yelp/Testify/pull/311","id":71408619,"number":311,"title":"Add new function addfinalizer to TestCase","user":{"login":"ealter","id":607391,"avatar_url":"https://avatars.githubusercontent.com/u/607391?v=3","gravatar_id":"","url":"https://api.github.com/users/ealter","html_url":"https://github.com/ealter","followers_url":"https://api.github.com/users/ealter/followers","following_url":"https://api.github.com/users/ealter/following{/other_user}","gists_url":"https://api.github.com/users/ealter/gists{/gist_id}","starred_url":"https://api.github.com/users/ealter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ealter/subscriptions","organizations_url":"https://api.github.com/users/ealter/orgs","repos_url":"https://api.github.com/users/ealter/repos","events_url":"https://api.github.com/users/ealter/events{/privacy}","received_events_url":"https://api.github.com/users/ealter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-27T21:29:22Z","updated_at":"2015-04-28T00:40:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Yelp/Testify/pulls/311","html_url":"https://github.com/Yelp/Testify/pull/311","diff_url":"https://github.com/Yelp/Testify/pull/311.diff","patch_url":"https://github.com/Yelp/Testify/pull/311.patch"},"body":"Add functionality to test cases so that they can dynamically register teardowns. This is modeled after addfinalizer in pytest."},"comment":{"url":"https://api.github.com/repos/Yelp/Testify/issues/comments/96859800","html_url":"https://github.com/Yelp/Testify/pull/311#issuecomment-96859800","issue_url":"https://api.github.com/repos/Yelp/Testify/issues/311","id":96859800,"user":{"login":"ealter","id":607391,"avatar_url":"https://avatars.githubusercontent.com/u/607391?v=3","gravatar_id":"","url":"https://api.github.com/users/ealter","html_url":"https://github.com/ealter","followers_url":"https://api.github.com/users/ealter/followers","following_url":"https://api.github.com/users/ealter/following{/other_user}","gists_url":"https://api.github.com/users/ealter/gists{/gist_id}","starred_url":"https://api.github.com/users/ealter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ealter/subscriptions","organizations_url":"https://api.github.com/users/ealter/orgs","repos_url":"https://api.github.com/users/ealter/repos","events_url":"https://api.github.com/users/ealter/events{/privacy}","received_events_url":"https://api.github.com/users/ealter/received_events","type":"User","site_admin":false},"created_at":"2015-04-28T00:40:45Z","updated_at":"2015-04-28T00:40:45Z","body":"We want to turn factory classes into functions. When factories want to\nclean up after themselves, they need a way to do so. This new function will\nmake it very simple to have factory functions dynamically add new teardowns.\nOn Apr 27, 2015 5:37 PM, \"Buck Evan\" <notifications@github.com> wrote:\n\n> What's the use case for this?\n>\n> From what I saw in pytest, the addfinalizer was a more hackitty way to\n> write a setup-teardown fixture.\n> This is one of the very few spots where testify's design is better, and\n> pytest is moving in this direction with their @yeild_fixture's.\n>\n> I'm quite happy to be wrong, but you'll need to explain it.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/Yelp/Testify/pull/311#issuecomment-96858722>.\n>\n"}}