What worked for me: Pycharm Settings -> Build, Execution, Deployment -> Python Debugger -> Drop into debugger on failed test:
Pycharm Settings
Build, Execution, Deployment
Python Debugger
Drop into debugger on failed test
Screenshot