Skip to content

Commit

Permalink
various fixes to tests to make them work post-merge.
Browse files Browse the repository at this point in the history
  • Loading branch information
KathleenLabrie committed Apr 17, 2024
1 parent ce28dd8 commit d260597
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gemini_instruments/ghost/tests/test_ghost.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def test_instrument():
def test_various_tags():
path = astrodata.testing.download_from_archive("S20221209S0007.fits")
ad = astrodata.open(path)
assert 'STD' in ad.tags
# assert 'STD' in ad.tags #STD is no longer a tag
assert 'GHOST' in ad.tags
assert 'BUNDLE' in ad.tags

Expand Down
2 changes: 1 addition & 1 deletion gemini_instruments/test/lut_descriptors.py
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@
('detector_x_bin', 1),
('detector_y_bin', 1),
('disperser', 'MIRROR'),
('dispersion', [-3.876e-10]),
('dispersion', [-3.88e-10]),
('dispersion_axis', [2]),
('effective_wavelength', 1.25e-06),
('elevation', 60.1851833333),
Expand Down
2 changes: 1 addition & 1 deletion geminidr/core/tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


CORRECT_PARAMETERS = [('GMOSImage', 'standardizeWCS', ['suffix']),
('GMOSImage', 'prepare', ['suffix', 'attach_mdf', 'mdf']),
('GMOSImage', 'prepare', ['suffix', 'attach_mdf', 'mdf', 'require_wcs']),
('F2Image', 'stackDarks',
['suffix', 'apply_dq', 'statsec', 'operation',
'reject_method', 'hsigma', 'lsigma', 'mclip',
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ commands =
pip install git+https://github.com/GeminiDRSoftware/AstroFaker#egg=AstroFaker
conda list
noop: python -c "pass" # just install deps & ensure python runs
unit: python -m coverage run --rcfile={toxinidir}/.coveragerc -m pytest -v --dragons-remote-data --durations=20 -m "not integration_test and not gmosls and not f2 and not f2ls and not f2image and not gsaoi and not gsaoiimage and not niri and not nirils and not niriimage and not gnirs and not gnirsls and not gnirsimage and not wavecal and not regression and not slow" {posargs:astrodata geminidr gemini_instruments gempy recipe_system}
unit: python -m coverage run --rcfile={toxinidir}/.coveragerc -m pytest -v --dragons-remote-data --durations=20 -m "not integration_test and not gmosls and not f2 and not f2ls and not f2image and not gsaoi and not gsaoiimage and not niri and not nirils and not niriimage and not gnirs and not gnirsls and not gnirsimage and not wavecal and not regression and not slow and not ghost and not ghostbundle and not ghostslit and not ghostspect" {posargs:astrodata geminidr gemini_instruments gempy recipe_system}
integ: python -m coverage run --rcfile={toxinidir}/.coveragerc -m pytest -v --dragons-remote-data --durations=20 -m "integration_test and not slow" {posargs:astrodata geminidr gemini_instruments gempy recipe_system}
gmosls: python -m coverage run --rcfile={toxinidir}/.coveragerc -m pytest -v --dragons-remote-data --durations=20 -m "gmosls and not slow and not wavecal" {posargs:astrodata geminidr gemini_instruments gempy recipe_system}
wavecal: python -m coverage run --rcfile={toxinidir}/.coveragerc -m pytest -v --dragons-remote-data --durations=20 -m "wavecal" {posargs:astrodata geminidr gemini_instruments gempy recipe_system}
f2: python -m coverage run --rcfile={toxinidir}/.coveragerc -m pytest -v --dragons-remote-data --durations=20 -m "(f2 or f2ls or f2image) and not slow" {posargs:astrodata geminidr gemini_instruments gempy recipe_system}
gsaoi: python -m coverage run --rcfile={toxinidir}/.coveragerc -m pytest -v --dragons-remote-data --durations=20 -m "(gsaoi or gsaoiimage) and not slow" {posargs:astrodata geminidr gemini_instruments gempy recipe_system}
niri: python -m coverage run --rcfile={toxinidir}/.coveragerc -m pytest -v --dragons-remote-data --durations=20 -m "(niri or nirils or niriimage) and not slow" {posargs:astrodata geminidr gemini_instruments gempy recipe_system}
gnirs: python -m coverage run --rcfile={toxinidir}/.coveragerc -m pytest -v --dragons-remote-data --durations=20 -m "(gnirs or gnirsls or gnirsimage) and not slow" {posargs:astrodata geminidr gemini_instruments gempy recipe_system}
ghost: python -m coverage run --rcfile={toxinidir}/.coveragerc -m pytest -v --dragons-remote-data --durations=20 -m "(ghost or ghostslit or ghostspect) and not slow" {posargs:astrodata geminidr gemini_instruments gempy recipe_system}
ghost: python -m coverage run --rcfile={toxinidir}/.coveragerc -m pytest -v --dragons-remote-data --durations=20 -m "(ghost or ghostbundle or ghostslit or ghostspect) and not slow" {posargs:astrodata geminidr gemini_instruments gempy recipe_system}
reg: python -m coverage run --rcfile={toxinidir}/.coveragerc -m pytest -v --dragons-remote-data --durations=20 -m "regression and not slow" {posargs:astrodata geminidr gemini_instruments gempy recipe_system}
slow: python -m coverage run --rcfile={toxinidir}/.coveragerc -m pytest -v --dragons-remote-data --durations=20 -m "slow and not wavecal" {posargs:astrodata geminidr gemini_instruments gempy recipe_system}
docs: sphinx-build {posargs} . _build/html
Expand Down

0 comments on commit d260597

Please sign in to comment.