Question
How can I import helper functions in test files without creating packages in the test directory?
test
Contex
As another option, this directory structure worked for me:
mypkg/ ... test_helpers/ __init__.py utils.py ... tests/ my_test.py ...
And then in my_test.py import the utilities using: from test_helpers import utils
my_test.py
from test_helpers import utils