path not correctly generated for the class test
Hello, I'm using the last version of Pycharm (2019.1.2) on Linux.
myprojectfolder
--- project
---- src
--- pkg1
--- test
---- test_mod1
--- mod1
When I use the automatic import, everything it's fine. my class are imported correctly. As I setup now the import for the class Class1 in mod1 is imported correctly as
from src.pkg1.mod1 import Class1
If I want to test a class in `test_mod1` the Run Test for class generates a configuration with the path `project.src.pkg1.test.test_mode1` this cause an error and the test is not run. I don't understand why the import works in the editor, but is wrong in the test.
In the project structure the root source is `project`
Please sign in to leave a comment.
This is issue is related to this issue: https://intellij-support.jetbrains.com/hc/en-us/community/posts/205817999-Wrong-django-test-target-when-using-context-menu-to-run-specific-unit-tests-?page=1#community_comment_360000528660