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?
Update
I created a feature request: https://youtrack.jetbrains.com/issue/JT-53069
Just for the records, here are docs about common test layouts: https://docs.pytest.org/en/latest/goodpractices.html#choosing-a-test-layout-import-rules
