Pycharm does not generate test stub with Alt + Insert -> Test...

Hello,

what do I have to do, so that the Generate Menu Item - Test... generates a test method stub?

The existing tests are recognized and are running. The file is named A_test.py and contained in below root in the folder "tests"

This is my first Python project. So I do not know how to set this as test resource like in a Java Maven Project. At least I only found in the project structure the possibility to mark folders as sources.

 

Greetings.

2 comments
Comment actions Permalink

To generate a test stub for a function, you need to place caret on that function declaration, hit Alt+Insert, and you should be able to select "Test" from the list.

0
Comment actions Permalink

No sadly it does not.

0

Please sign in to leave a comment.