PyCharm 2021.1 Help

Create Test Dialog

Navigate | Test - Create New Test

Ctrl+Shift+T

Use this dialog box to generate a test class for a class or method, if such test doesn't yet exist.

ItemDescription
Target directoryClick the browse button the Browse button to open the directory chooser dialog box, and select the target directory, where the desired test file will be generated.
Test file nameIn this text field, specify the name of a file where test class will be generated, or accept the default name.
Test class nameIn this text field, specify the name of the test class, or accept the default name.
Test methodThis list shows all methods of a class in question (if the dialog has been invoked from the class declaration), or the name of the only method (if the dialog has been invoked from within this method).

Select the checkbox next to the method names to include these test methods in the generated test class.

Last modified: 08 March 2021