Description
In case python file has no top-level functions, but only one class, then user can generate tests from inside the file but not from project view.
To Reproduce
Steps to reproduce the behavior:
- Create Python file with has only class declaration with one or many methods.
- Right click on the file in Project view
Expected behavior
UTbot "Generate Tests" is disabled and can be invoked. At least in case there is only one class declaration in the file.
Actual behavior
Menu item is enabled.
Visual proofs (screenshots, logs, images)

Additional information
Inside the file but outside of class declaration test generation doesn't work either. Though if there is only one class in the file it should work.
Description
In case python file has no top-level functions, but only one class, then user can generate tests from inside the file but not from project view.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
UTbot "Generate Tests" is disabled and can be invoked. At least in case there is only one class declaration in the file.
Actual behavior
Menu item is enabled.
Visual proofs (screenshots, logs, images)
Additional information
Inside the file but outside of class declaration test generation doesn't work either. Though if there is only one class in the file it should work.