Skip to content

Commit

Permalink
fix test test_offset.py ruff issue
Browse files Browse the repository at this point in the history
  • Loading branch information
jemorrison committed Sep 19, 2024
1 parent 6f7f76d commit b0196d1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions jwst/cube_build/tests/test_offset.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
"""

import pytest
import sys
import math
import asdf
from stdatamodels.jwst import datamodels
Expand Down Expand Up @@ -159,8 +158,8 @@ def test2_offset_file_config(tmp_cwd, miri_ifushort_short_2files, offset_file):
miri_ifushort_short_2files[0].meta.filename = 'test3.fits'
step.offset_file = offset_file

with pytest.raises(Exception):
offsets = step.check_offset_file()
with pytest.raises(ValueError):
step.check_offset_file()


def test_offset_file_units(tmp_cwd, miri_ifushort_short_2files, offset_file_arcmin):
Expand All @@ -172,7 +171,7 @@ def test_offset_file_units(tmp_cwd, miri_ifushort_short_2files, offset_file_arcm

step.offset_file = offset_file_arcmin
with pytest.raises(Exception):
offsets = step.check_offset_file()
step.check_offset_file()

def test_read_offset_file(miri_ifushort_short_2files, offset_file):
""" Test offset file has been read in correctly"""
Expand Down

0 comments on commit b0196d1

Please sign in to comment.