Yes, conftest.py is a file read by pytest that executes test-specific things, such as fixtures, while the config.py file stores application-specific things, such as the project environment. Maybe you could squeeze everything into one file, but I wouldn't recommend that for better readability.
Gustavo Matto
QA Automation
Thanks for this solution, Jaksa, just what I was looking for. Just a question: then you need two files for this, conftest.py and config.py?