{"action":"created","issue":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/3582","repository_url":"https://api.github.com/repos/pytest-dev/pytest","labels_url":"https://api.github.com/repos/pytest-dev/pytest/issues/3582/labels{/name}","comments_url":"https://api.github.com/repos/pytest-dev/pytest/issues/3582/comments","events_url":"https://api.github.com/repos/pytest-dev/pytest/issues/3582/events","html_url":"https://github.com/pytest-dev/pytest/issues/3582","id":332492947,"node_id":"MDU6SXNzdWUzMzI0OTI5NDc=","number":3582,"title":"Allow having multiple conftest.py on same level","user":{"login":"ikonst","id":1186084,"node_id":"MDQ6VXNlcjExODYwODQ=","avatar_url":"https://avatars3.githubusercontent.com/u/1186084?v=4","gravatar_id":"","url":"https://api.github.com/users/ikonst","html_url":"https://github.com/ikonst","followers_url":"https://api.github.com/users/ikonst/followers","following_url":"https://api.github.com/users/ikonst/following{/other_user}","gists_url":"https://api.github.com/users/ikonst/gists{/gist_id}","starred_url":"https://api.github.com/users/ikonst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikonst/subscriptions","organizations_url":"https://api.github.com/users/ikonst/orgs","repos_url":"https://api.github.com/users/ikonst/repos","events_url":"https://api.github.com/users/ikonst/events{/privacy}","received_events_url":"https://api.github.com/users/ikonst/received_events","type":"User","site_admin":false},"labels":[{"id":224849198,"node_id":"MDU6TGFiZWwyMjQ4NDkxOTg=","url":"https://api.github.com/repos/pytest-dev/pytest/labels/type:%20question","name":"type: question","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-06-14T17:21:47Z","updated_at":"2018-06-15T20:19:10Z","closed_at":null,"author_association":"NONE","body":"In our project, the conftest.py files have grown so large that we felt the need to refactor them into smaller modules. However, modules imported by conftest.py using `import` cannot contribute fixtures.\r\n\r\nWe've tried using `pytest_plugins` but unfortunately (as the documentation says and as my testing confirms), importing a plugin with fixtures in one conftest.py makes them available in tests in parent and sibling hierarchies.\r\n\r\nI'd like to propose a simple solution, to have pytest look for `conftest.py` and then `conftest_*.py` (under the same directory). This way, unruly conftest.py files could be easily split up.\r\n\r\n(Let me know if it's an acceptable solution, I can implement it.)"},"comment":{"url":"https://api.github.com/repos/pytest-dev/pytest/issues/comments/397731289","html_url":"https://github.com/pytest-dev/pytest/issues/3582#issuecomment-397731289","issue_url":"https://api.github.com/repos/pytest-dev/pytest/issues/3582","id":397731289,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NzczMTI4OQ==","user":{"login":"nicoddemus","id":1085180,"node_id":"MDQ6VXNlcjEwODUxODA=","avatar_url":"https://avatars2.githubusercontent.com/u/1085180?v=4","gravatar_id":"","url":"https://api.github.com/users/nicoddemus","html_url":"https://github.com/nicoddemus","followers_url":"https://api.github.com/users/nicoddemus/followers","following_url":"https://api.github.com/users/nicoddemus/following{/other_user}","gists_url":"https://api.github.com/users/nicoddemus/gists{/gist_id}","starred_url":"https://api.github.com/users/nicoddemus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicoddemus/subscriptions","organizations_url":"https://api.github.com/users/nicoddemus/orgs","repos_url":"https://api.github.com/users/nicoddemus/repos","events_url":"https://api.github.com/users/nicoddemus/events{/privacy}","received_events_url":"https://api.github.com/users/nicoddemus/received_events","type":"User","site_admin":false},"created_at":"2018-06-15T20:19:10Z","updated_at":"2018-06-15T20:19:10Z","author_association":"MEMBER","body":"Thanks!"}}
{"actor":{"display_login":"nicoddemus"}}