Thursday, 6 June 2019

PyCharm: Create Test --> Target directory?

I recently discovered the feature "Go To --> Test" in PyCharm.

If I choose "Create New Test", then the target directory of the new python file is wrong.

PyCharm wants to create the new python file in the same directory.

Up to now I use this structure:

src/myapp/setup.py
src/myapp/myapp/real_code.py
src/myapp/myapp/tests/test_real_code.py

How can I tell PyCharm to create test_real_code.py in above location?



from PyCharm: Create Test --> Target directory?

No comments:

Post a Comment