Sometimes, you want to search for the name of a method only within the code, not in the test. When the tests are spread all over the project, that is quite hard to do, since you can not simply exclude the test suit from the search scope.
Use the exclusion pattern !(file:*test*||file:*/*test*//*)
in a PyCharm scope pattern,
to exclude all files, that are having...
- ... the term
test
in it (!file:*test*
), or