Question
How can I import helper functions in test files without creating packages in the test directory?
test
Contex
Create a helpers package in tests folder:
tests/ helpers/ __init__.py utils.py ... # make sure no __init__.py in here! setup.cfg
in setup.cfg:
[pytest] norecursedirs=tests/helpers
the helpers will be available with import helpers.
import helpers