In my project (which is a mixed C++/Python source tree) we have this structure:
In PyCharm I have marked both the src and tests directories as Source roots. This allows me to run tests with the correct PYTHONPATH. It's actually kindof tricky to set this up - you have to mark the subdirectory before the parent directory.
I saw some changes were made in CLion 2016.3 with PYTHONPATH so I tried doing the same thing (marking the directories as Project Sources and Headers). My test's run configuration has both boxes checked for Add Source Roots to PYTHONPATH and Add Content Roots to PYTHONPATH. But when I try to run the test it can't find the classes from the parent directory.
How can I set this up in CLion? Also, what is the difference between a Source Root and a Content Root? I can't find anything on how to set a Content root.