Skip to content

Commit

Permalink
Skip two tests for now which rely on counting duplicate warning messa…
Browse files Browse the repository at this point in the history
…ges.
  • Loading branch information
DBerke authored and KathleenLabrie committed Mar 30, 2023
1 parent 50064a9 commit b760d14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geminidr/core/tests/test_visualize.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,15 @@ def test_mosaic_detectors_gmos_binning(astrofaker, hemi, ccd):
diffs = np.diff(unbinned_positions) - binning * np.diff(x)
assert np.max(abs(diffs)) < 0.01


@pytest.mark.skip(reason='Relies on reading duplicate warning messages')
def test_mosaic_detectors_raises_warning_with_different_gains(astrofaker, caplog):
ad = astrofaker.create('GMOS-N', ['IMAGE'])
ad.init_default_extensions(overscan=False)
p = GMOSImage([ad])
p.mosaicDetectors()
assert sum(["have different gains" in rec.msg for rec in caplog.records]) == 1


@pytest.mark.skip(reason='Relies on reading duplicate warning messages')
def test_tile_arrays_raises_warning_with_different_gains(astrofaker, caplog):
ad = astrofaker.create('GMOS-N', ['IMAGE'])
ad.init_default_extensions(overscan=False)
Expand Down

0 comments on commit b760d14

Please sign in to comment.