How can I make pyCharm to detect dependencies listed in tox.ini?
Answered
My PyCharm is not able to detect the `pytest` module (in import statement) in my test case as it is listed in tox.ini. However, I was am expecting the dependencies to be detected. This detection will give me the ability to jump into the source code of pytest and other test-related dependencies as and when needed.
Thanks in anticipation.
Please sign in to leave a comment.
Hi,
PyCharm doesn't do anything with tox.ini. It simply runs your tox which then reads your tox.ini file and creates environment where all the packages listed in tox.ini are installed.
If your import statement isn't resolved, then it is because your Project Interpreter doesn't have these modules installed. You can either install them to your Project Interpreter or choose the environment created by tox to be your Project Interpreter.