[Tutor] Test discovery not locating module to test

boB Stepp robertvstepp at gmail.com
Thu Aug 20 14:45:40 CEST 2015


On Thu, Aug 20, 2015 at 2:37 AM, Peter Otten <__peter__ at web.de> wrote:

> Assuming E:/Projects/mcm/src is in the PYTHONPATH mcm_db_mgr.py (what an
> alphabet soup!)...

Written out in full, this would be

montessori_classroom_manager_database_manager.py

Hmm.  Perhaps just db_manager.py?

> ...is part of your db package and has to be imported with
>
> import db.mcm_db_mgr
>
> or
>
> from db import mcm_db_mgr
>
> by modules outside the db package.

I'm bad!  So clear in the morning, so obscure for me just before bed.
In my defense, I have intellectually *known* about this, but have not
used the standard library much to this point, and this is the first
time I have tried this *package* structure of a project, so that
aspect is all new to me.

Thanks, Peter!

boB


More information about the Tutor mailing list