{"action":"created","issue":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/6326","repository_url":"https://api.github.com/repos/CenterForOpenScience/osf.io","labels_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/6326/labels{/name}","comments_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/6326/comments","events_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/6326/events","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/6326","id":177838523,"number":6326,"title":"Support test-level database isolation [OSF-7042]","user":{"login":"whit537","id":134455,"avatar_url":"https://avatars.githubusercontent.com/u/134455?v=3","gravatar_id":"","url":"https://api.github.com/users/whit537","html_url":"https://github.com/whit537","followers_url":"https://api.github.com/users/whit537/followers","following_url":"https://api.github.com/users/whit537/following{/other_user}","gists_url":"https://api.github.com/users/whit537/gists{/gist_id}","starred_url":"https://api.github.com/users/whit537/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whit537/subscriptions","organizations_url":"https://api.github.com/users/whit537/orgs","repos_url":"https://api.github.com/users/whit537/repos","events_url":"https://api.github.com/users/whit537/events{/privacy}","received_events_url":"https://api.github.com/users/whit537/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":24,"created_at":"2016-09-19T16:56:05Z","updated_at":"2016-09-30T13:37:00Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/pulls/6326","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/6326","diff_url":"https://github.com/CenterForOpenScience/osf.io/pull/6326.diff","patch_url":"https://github.com/CenterForOpenScience/osf.io/pull/6326.patch"},"body":"## Purpose\r\n\r\nOur current testing infrastructure scopes database isolation to the test class level. Better practice is to scope isolation to the test-case level, to avoid interference between one test and another. This PR factors out a `DbIsolationMixin` implementing test-level isolation for use across multiple test classes.\r\n\r\n## Changes\r\n\r\nNo user-visible changes.\r\n\r\n## Side effects\r\n\r\nNo side-effects.\r\n\r\n## Ticket\r\n\r\nhttps://openscience.atlassian.net/browse/OSF-7042"},"comment":{"url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/comments/250746060","html_url":"https://github.com/CenterForOpenScience/osf.io/pull/6326#issuecomment-250746060","issue_url":"https://api.github.com/repos/CenterForOpenScience/osf.io/issues/6326","id":250746060,"user":{"login":"whit537","id":134455,"avatar_url":"https://avatars.githubusercontent.com/u/134455?v=3","gravatar_id":"","url":"https://api.github.com/users/whit537","html_url":"https://github.com/whit537","followers_url":"https://api.github.com/users/whit537/followers","following_url":"https://api.github.com/users/whit537/following{/other_user}","gists_url":"https://api.github.com/users/whit537/gists{/gist_id}","starred_url":"https://api.github.com/users/whit537/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whit537/subscriptions","organizations_url":"https://api.github.com/users/whit537/orgs","repos_url":"https://api.github.com/users/whit537/repos","events_url":"https://api.github.com/users/whit537/events{/privacy}","received_events_url":"https://api.github.com/users/whit537/received_events","type":"User","site_admin":false},"created_at":"2016-09-30T13:37:00Z","updated_at":"2016-09-30T13:37:00Z","body":"#### Time to run `TestUser`*\r\n\r\n|   | status quo (sq) | unoptimized | optimized |\r\n|---:|---------:|-------------:|-------------:|\r\n| 1 | 8.555 | 91.881 | 9.724 |\r\n| 2 | 8.437 | 86.083 | 9.073 |\r\n| 3 | 9.027 | 105.891 | 11.159 |\r\n| μ | 8.673 | 94.618 | 9.985 |\r\n| μ / sq μ | 1 | 10.909 | 1.151 |\r\n\r\n`* nosetests -sv tests/test_models.py:TestUser`"}}
{"actor":{"display_login":"whit537"}}