I have a question about how to correctly import module in python unit test module. this is my directory structure
project -
| _ Library _
| |_ TimeCalculator.py
| _ Test _
|_ UnittestFile.py
and I want to test the function in TimeCalculator.py so in UnittestFile.py I write
from .Library.TimeCalculator import TimeCalculator
but the error come out saying ImportError: attempted relative import with no known parent package
I want to ask how to import without setting the PATH in this case.