[Tutor] Do not understand why test is running.
lac at openend.se
Fri Aug 21 17:29:17 CEST 2015
In a message of Fri, 21 Aug 2015 06:26:11 -0700, Alex Kleider writes:
>On 2015-08-20 23:16, Peter Otten wrote:
>> Yea, breaking things is an art form ;)
>> $ python3 -m unittest -h
>> usage: python3 -m unittest [-h] [-v] [-q] [-f] [-c] [-b] [tests [tests
>> For test discovery all test modules must be importable from the top
>> directory of the project.
>How is "top level directory of the project" defined in this context?
>Is it as far up as one can travel while passing through directories
>containing an __init__.py file?
With python3 you don't need an __init__.py file to have a module,
... scratching head ....
So I suppose you could make a test module that is importable
from the top level directory, but doesn't have an __init__.py file.
... is that true? ... more scratching ...
More information about the Tutor