high-magician-46188
02/07/2023, 10:12 PMtest
folder:
proj_a (proj)
- proj_a (src)
- __init__.py
- main.py
- ...
- test
- test_a.py
- test_b.py
- ...
prob_b
- proj_b (src)
- ...
- test
- ...
...
However, in each test
folder, there are tests that import adjacent helper files.
Is this expected to work?
If so, then I guess that the import should be something like from test import helper_a
?
In that case, each project has a test
"package"?
Is there a guarantee that each of them will refer the test
folder for the same project, rather than another one and rather than merging them?
(thanks in advance ๐ )happy-kitchen-89482
02/07/2023, 11:52 PMproj_a/
, proj_b
, so that test
is a top-level package, then you have a namespacing problemtest/util.py
then they will collide