Multiple conftest and __init__.py across packages breaks pytest path resolving - how to solve it? #10708
-
I have following project setup:
This is a monorepo setup, I am omitting most of the files including
I understand that this is somehow related to pytest not resolving What is curious though is when I move my tests inside the package it runs correctly:
How to solve this issue? I cannot remove init from tests, and neither I want to move tests to the package |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I've found a working setup:
To make it work:
|
Beta Was this translation helpful? Give feedback.
I've found a working setup:
To make it work:
conftest.py
needs to be outside oftests
foldermy_repo
…