Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
No pytest import from non-test code #1266
@leajouvin reported on Slack the following error:
She is trying to
and fails because she has a broken pytest installation (the py dependency of pytest is missing).
We should never import code that imports pytest from normal Gammapy code. I checked this:
So the fix here is to see if we still need
In addition, this will also trigger an import of pytest:
There the list of models should be moved to normal Gammapy code or config. Either separated, or done the other way around, import that version from conftest.py for the tests.
Finally, we might want to add a build on travis-ci that runs checks via
Assigning this issue to myself, but if anyone wants to take on one or several of the three tasks listed above, PRs welcome any time.
I'll revert that now.