Skip to content

UnitTestBot action is disabled for .py and enabled for .xml, .exe and others in Project view #1479

Closed
@alisevych

Description

@alisevych

Description

UnitTestBot action is disabled for .py and enabled for .xml, .exe and others in Project view

To Reproduce

  1. Install one of the latest plugin builds from main in IntelliJ Idea 2022.2.3
  2. Install Python plugin from MarketPlace
  3. Create a Python project with Venv
  4. Add a sample code to it, for example :
def print_hi(name):
    # Use a breakpoint in the code line below to debug your script.
    print(f'Hi, {name}')  # Press Ctrl+F8 to toggle the breakpoint.

if __name__ == '__main__':
    print_hi('PyCharm')
  1. Right-click on Python-file
  2. Open .idea folder , right-click on .gitignore
  3. Right-click on *.xml
  4. Open venv folder, right-click on *.bat, *.exe, *.nu, *.fish

Expected behavior

  1. Generate Tests with UnitTestBot... should be enabled.
    6.-8. Generate Tests with UnitTestBot... should be disabled

Actual behavior

  1. Generate Tests with UnitTestBot... is disabled.
    6.-8. Generate Tests with UnitTestBot... is enabled

Visual proofs (screenshots, logs, images)

image

image

Environment

Windows 10 Pro
IntelliJ IDEA 2022.2.3 (not latest)

Additional context

Action can be called from code with Alt+Shift+U
Nothing seems to happen when action is called on EXE, XML, .gitignore

Metadata

Metadata

Assignees

Labels

comp-uiImprovements of plugin UI appearence and functionalityctg-bugIssue is a buglang-pythonIssue is related to python support

Type

No type

Projects

Status

Done

Relationships

None yet

Development

No branches or pull requests

Issue actions