Move pulpcore tests to top-level directory in pulp/pulp
I believe traditionally tests are not contained in the sourcetree with the the code itself. I think we would move the tests outside of the pulpcore folder itself so the 'tests' are at the top level.
This mirrors the cookiecutter layout for example where 'tests' are at the top level: https://github.com/audreyr/cookiecutter-pypackage
#1 Updated by bmbouter over 1 year ago
Also for pulpcore-plugin as well: https://github.com/pulp/pulpcore-plugin/tree/master/pulpcore
#2 Updated by bherring over 1 year ago
While this is initially written in/for Pulp and Pulpcore, I believe it would make sense to apply this same directory structure change to all current plug-ins and anything under github/pulp
The assumption is that any test or sub-testing folder structure would reside until the project's root test dir (e.g. functional, unit, etc.)
test ├── functional │ ├── api │ │ ├── __init__.py │ │ └── test_functional.py │ ├── __init__.py │ ├── Makefile │ └── utils.py ├── __init__.py └── unit ├── __init__.py └── test_unit.py
At this time, I believe that would include:
The following are already structured as proposed:
It may also be worth looking at updating the plugin_template to include an example or representative /test dir with a mock test already in place. This would encourage the test location/dir structure we would prefer.
Please register to edit this issue