Saturday, January 23, 2016

PyCharm context menu says "run unittests for ..." when I have no unit tests

Problem
I have no unit tests and PyCharm is annoyingly saying "Run unittests for myFile.py" in the context menu, instead of "Run myFile.py"

Solution
I had two functions with the word "test" at the beginning, and PyCharm apparently uses that as a flag to determine what to say in the context menu. Not very charming. The solution was to change the name so that they didn't start with "test."

No comments:

Post a Comment

There was an error in this gadget