I need to implement the logic of conftest not in the project inside but in separate package which I want to put in my virtual env. How can I make it possible? For now I have conftest in separate package where I already implement the simple logic which I want to use in my main project. For some reasons I can't put these conftest settings directly inside the code, I have to use separate pack for that. Below is my simple code in conftest.py inside virtual env.
def pytest_configure(config):
config.addinivalue_line(
"markers", "custom_mark: this is my custom mark"
)
Unfortunately, while I am checking markers I dont see this custom mark as a marker, moreover I already tried to run my test suite with this custom mark, but I see warning and it seems conftest from virtual env is not visible for main project. What is the reason of that and how can I fix it? Any suggestions very appreciated.
P.S. Everything is OK with marker itself, because when I am trying to use it in the package directory it is working, but it seems not visible for main project.