{"action":"created","issue":{"url":"https://api.github.com/repos/pytest-dev/pytest-django/issues/602","repository_url":"https://api.github.com/repos/pytest-dev/pytest-django","labels_url":"https://api.github.com/repos/pytest-dev/pytest-django/issues/602/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/pytest-django/issues/602/comments","events_url":"https://api.github.com/repos/pytest-dev/pytest-django/issues/602/events","html_url":"https://github.com/pytest-dev/pytest-django/issues/602","id":327169104,"node_id":"MDU6SXNzdWUzMjcxNjkxMDQ=","number":602,"title":"Question on database in case of xdist and TestCase based django tests","user":{"login":"valignatev","id":7038954,"node_id":"MDQ6VXNlcjcwMzg5NTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7038954?v=4","gravatar_id":"","url":"https://api.github.com/users/valignatev","html_url":"https://github.com/valignatev","followers_url":"https://api.github.com/users/valignatev/followers","following_url":"https://api.github.com/users/valignatev/following{/other_user}","gists_url":"https://api.github.com/users/valignatev/gists{/gist_id}","starred_url":"https://api.github.com/users/valignatev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valignatev/subscriptions","organizations_url":"https://api.github.com/users/valignatev/orgs","repos_url":"https://api.github.com/users/valignatev/repos","events_url":"https://api.github.com/users/valignatev/events{/privacy}","received_events_url":"https://api.github.com/users/valignatev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-05-29T04:50:54Z","updated_at":"2018-08-23T20:13:25Z","closed_at":null,"author_association":"NONE","body":"Hi! It's not really a bug report, it's more of a question.\r\n\r\nDocs say that `pytest-django` works with `pytest-xdist` correctly, but only if we use its db marks and fixtures. I wasn't able to find out explicit information on whether `pytest-xdist` will work correctly if I run it with django `TestCase`-based tests. Brief experiments and looking through the code show me that it won't.\r\nI also found #545 which asks for native Django parallel run support.\r\n\r\nSo my question is: Do `TestCase`-based tests share the same database, if being run with xdist?\r\n\r\nUPDATE: also, I probably should mention that I'm using in-memory SQLite database for testing. Comments in django database creation tell me that \"Forking automatically makes a copy of an in-memory database\", but database name is the same for all tests: `file:memorydb_default?mode=memory&cache=shared`, so I'm not sure."},"comment":{"url":"https://api.github.com/repos/pytest-dev/pytest-django/issues/comments/415556202","html_url":"https://github.com/pytest-dev/pytest-django/issues/602#issuecomment-415556202","issue_url":"https://api.github.com/repos/pytest-dev/pytest-django/issues/602","id":415556202,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNTU1NjIwMg==","user":{"login":"blueyed","id":9766,"node_id":"MDQ6VXNlcjk3NjY=","avatar_url":"https://avatars1.githubusercontent.com/u/9766?v=4","gravatar_id":"","url":"https://api.github.com/users/blueyed","html_url":"https://github.com/blueyed","followers_url":"https://api.github.com/users/blueyed/followers","following_url":"https://api.github.com/users/blueyed/following{/other_user}","gists_url":"https://api.github.com/users/blueyed/gists{/gist_id}","starred_url":"https://api.github.com/users/blueyed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/blueyed/subscriptions","organizations_url":"https://api.github.com/users/blueyed/orgs","repos_url":"https://api.github.com/users/blueyed/repos","events_url":"https://api.github.com/users/blueyed/events{/privacy}","received_events_url":"https://api.github.com/users/blueyed/received_events","type":"User","site_admin":false},"created_at":"2018-08-23T20:13:25Z","updated_at":"2018-08-23T20:13:25Z","author_association":"CONTRIBUTOR","body":"> Brief experiments and looking through the code show me that it won't.\r\n\r\nPlease also elaborate on this.\r\nWhat is not working?"}}
{"actor":{"display_login":"blueyed"}}