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
DM-9297 make jointcal work with pytest #36
Conversation
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 ok, but please test with testdata_jointcal
being unavailable as I don't think it will skip properly.
tests/test_jointcal_cfht.py
Outdated
cls.data_dir = lsst.utils.getPackageDir('testdata_jointcal') | ||
os.environ['ASTROMETRY_NET_DATA_DIR'] = os.path.join(cls.data_dir, 'cfht_and_index') | ||
except lsst.pex.exceptions.NotFoundError: | ||
cls.data_dir = None |
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.
Nothing seems to be making the tests skip if this data dir is not set. The other tests raise the skip error.
tests/test_jointcal_hsc.py
Outdated
cls.data_dir = lsst.utils.getPackageDir('testdata_jointcal') | ||
os.environ['ASTROMETRY_NET_DATA_DIR'] = os.path.join(cls.data_dir, 'hsc_and_index') | ||
except lsst.pex.exceptions.NotFoundError: | ||
cls.data_dir = None |
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.
Riase SkipTest
here.
tests/test_jointcal_lsstSim.py
Outdated
cls.data_dir = lsst.utils.getPackageDir('testdata_jointcal') | ||
os.environ['ASTROMETRY_NET_DATA_DIR'] = os.path.join(cls.data_dir, 'twinkles1_and_index') | ||
except lsst.pex.exceptions.NotFoundError: | ||
unittest.SkipTest("testdata_jointcal not setup") |
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.
raise
? Have you tested this package with testdata_jointcal
not setup?
Thanks for catching those missing |
Move dist_rms_absolute into setUp, so it behaves correctly with pytest
No description provided.