-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Closed
Description
Description
I see many copies of conftest.py files buried in the package. The most troubling are astropy/conftest.py and conftest.py that contain duplicated code.
astropy/coordinates/tests/conftest.pyastropy/table/tests/conftest.pyastropy/wcs/tests/conftest.pyastropy/wcs/wcsapi/conftest.pyastropy/conftest.pydocs/conftest.pyconftest.py
Expected behavior
One and only one conftest.py at root directory.
Proposed solution
- Move stuff from lower level
conftest.pyfiles to the root level one. Eliminated duplicate code. - Move subpackage specfici test helper functions into
subpackage/tests/utils.pyif they are not needed at the rootconftest.pylevel.
Need to know
- Is there a reason why proposed solution above wouldn't work?