Fixture not found because of problem with 'rootdir' and 'pytest.ini' files #6359
Labels
topic: collection
related to the collection phase
topic: fixtures
anything involving fixtures directly or indirectly
type: question
general question, might be closed after 2 weeks of inactivity
I have
Python 3.8.0, pytest 5.3.2
and the next directory layout:The contents of the file
conftest.py
:The contents of the file
test_sample.py
:I am in the project1 directory. Running the command
py.test -vs --rootdir ./test_cases/sample
:All right. But I don't see
inifile: pytest.ini
in the output message.Next I run the command
py.test -vs ./test_cases/sample
:There is an error. I see
inifile: pytest.ini
in output message androotdir
in both cases is the same. Why doesn't it work? Why was the fixture 'fixture_sample' not found?The text was updated successfully, but these errors were encountered: