I\'m looking to create a pytest structure where I can separate the fixtures from the tests completely. The reason for this separation is that I want to include the fixtures
Please add the following in your conftest.py
import pytest
pytest_plugins = [
"fixtures.conftest",
"fixtures.fixture_cifs",
"fixtures.fixture_ftp",
"fixtures.fixture_service"
]
This ensures that all fixtures declared under fixtures/ will be found by pytest
As a note that the respective directories referred to in
fixtures.conftest"need to have__init__.pyfiles for the plugins to be loaded bypytest
A similar case can be seen here: https://stackoverflow.com/a/54736237/6655459