-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
toplevel pytest not working #130
Comments
This is a special case in a couple of ways, because specsim has historically followed the astropy-affiliated package pattern. That pattern includes built-in pytest configuration that is not included in other DESI packages. In the case of I'm a little less clear on 'non-test directories like ah_bootstrap.py', because The developers of this package need to make a definitive decision: fully update this package to the latest astropy-affiliated package patterns, or abandon astropy-affiliated status altogether and move towards a DESI-pattern package. In the latter case, a wider sample of the DESI collaboration would be able to provide support for this package. |
I believe this is now addressed by #136. Note however that in the course of updating the package infrastructure, I discovered a previously undeclared dependency on desimodel, which also brings in a dependency on desiutil. If this is not the case, please reopen. |
We're trying to move desi-related repos from the deprecated "python setup.py test" to "pytest". For the specsim package, "pytest specsim/tests" works, but if you just run "pytest" at the top level it tries to pickup things in non-test directories like ah_bootstrap.py and specsim/atmosphere.py .
Identify why pytest is picking up these non-test files, and try to reorganize so that "pytest" at the top level works.
Context: although running "pytest specsim/tests" is fine, it is a pain to have to remember which repos require which subdirectories to be specified and it would be preferable for all our repos to work with "pytest" alone without caveats, just like they used to all work with "python setup.py test".
@weaverba137 this is an example of what we discussed on Monday, where top-level "pytest" doesn't work correctly.
The text was updated successfully, but these errors were encountered: