"Cannot find declaration to go to" on generated unittest
Answered
Hi,
I need your help because I must be doing something basically wrong, but I am unable to figure it out.
I have created a test module and a class and then I create the unittests. Once I create them automatically with PyCharm I cannot go to the declaration.
I tried two alternatives. Both of them work during runtime, none of them show me the declaration:


However, it seems to work if I import the classes as follows:

Version:
PyCharm CE 2018.2.2
Please sign in to leave a comment.
Hi Fernando, could you please remove __init__.py from Settings | Editor | File Types | Text | Registered Patterns? Somehow __init__.py got associated with the Text file type and I think it breaks the parser.
Hi Pavel,
that definitively did it!
Thanks a lot for your quick response.
super, it's work for me . I remove urls.py from Settings | Editor | File Types | Text | Registered Patterns, and now in my urls.py the CTRL + click goto source code