I am trying to use Python unittest and relative imports, and I can\'t seem to figure it out. I know there are a lot of related questions, but none of them have helped so fa
In a layout where tests and package are at sibling level:
/project /tests /package
One way is to start within the package dir, use -s to discover only in tests, and use -t to set the top level:
../package $ python3 -m unittest discover -s ../tests -t ..