[Tutor] Test discovery not locating module to test

Peter Otten __peter__ at web.de
Thu Aug 20 16:33:25 CEST 2015

boB Stepp wrote:

> 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?

How about manager.py? If you increase the nesting level by introducing an 
mcm toplevel package you can access the module formerly known as 
db.mcm_db_mgr with

import mcm.db.manager


from mcm.db import manager

and avoid the mixture of logical "_" and physical "." separators.

More information about the Tutor mailing list