I did some studies and it seems that many python projects with tests would have the structure like following:
my_project:
- package_1
- my_package_1_class_1.py
- my_package_1_class_2.py
- my_package_1_class_3.py
- package_2
- my_package_2_class_1.py
- my_package_2_class_2.py
- my_package_2_class_3.py
- my_package_2_class_4.py
- package_3
- my_package_3_class_1.py
- my_package_3_class_2.py
- test
- test_my_package_1_class_1.py
- test_my_package_1_class_2.py
- test_my_package_1_class_3.py
- test_my_package_2_class_1.py
- test_my_package_2_class_2.py
- test_my_package_2_class_3.py
- test_my_package_2_class_4.py
- test_my_package_3_class_1.py
- test_my_package_3_class_2.py
The testing files from all packages are in the same test folder. This is a bit different from the normal Java structure, which each package has a corresponding folder for its own tests.
I feel this python structure is getting messy when we try to put a lot of testing files from different packages into the same test folder ...
How would an experienced python architecture/programmer structure their projects with many packages and testing files? Thanks!