-
Notifications
You must be signed in to change notification settings - Fork 0
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
Fix tests #16
Conversation
f996be0
to
eecb145
Compare
Absolute imports really should work. This is the recommended way of writing tests and astropy does this exclusively. They did for me, I added an
|
Fix the Testing description above so it accurately represents what you actually tested. |
OK, so once again I had a |
Right. Though in this case,
|
From some quick digging it looks like the |
So just add |
I thought the relative import was not required but kinda matched what we've been using everyplace else. |
We should use absolute imports going forward when possible. |
Is this the place to fix the host of Deprecation warnings coming from sherpa and ipyparallel and (some-unnamed-package) in ska3-next?
|
Right, I was asking that in fb9d577 . Do we just stick them in the pytest ini here? And are they fixed in new sherpa or should we just submit a PR? |
Yes, fixed in 4.14.0. I actually found the sherpa PR's for this earlier. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine now. It would be nice to have some way to remember to take out those ignore
lines when we upgrade to sherpa 4.14. Maybe once this is merged you can make a PR that removes them which we have hanging around and might eventually notice.
I also didn't think the pytest.ini ignores would do anything in ska_testr? |
Description
Fix tests.
They were failing due to the formatting of the debug print and if called with pytest without an
__init__.py
in the testing directory, these seemed to be running against the installed code instead of the local files.See also #17 for more on the exception.
Testing