Skip to content

Commit

Permalink
remove the preview tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ddavis-stsci committed Nov 27, 2023
1 parent 4860f44 commit 6dada04
Showing 1 changed file with 0 additions and 41 deletions.
41 changes: 0 additions & 41 deletions romancal/regtest/test_wfi_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -518,44 +518,3 @@ def test_processing_pipeline_all_saturated(rtdata, ignore_asdf_paths):
assert model.meta.cal_step.flat_field == "SKIPPED"
assert model.meta.cal_step.photom == "SKIPPED"


@pytest.mark.bigdata
@pytest.mark.soctests
@metrics_logger("DMS281")
def test_level2_image_preview(rtdata, ignore_asdf_paths):
"""Tests for flat field image preview requirements DMS 281"""
input_data = "r0000501001001001001_01101_0001_WFI01_cal.asdf"
rtdata.get_data(f"WFI/grism/{input_data}")
rtdata.input = input_data

# Test Pipeline
output = "r0000501001001001001_01101_0001_WFI01_cal_thumb.png"
rtdata.output = output
args = [
"roman_static_preview",
"thumbnail",
rtdata.input,
]
subprocess.run(args)
assert os.path.exists(rtdata.output) is True


@pytest.mark.bigdata
@pytest.mark.soctests
@metrics_logger("DMS278")
def test_level2_grism_preview(rtdata, ignore_asdf_paths):
"""Tests for flat field grism preview requirements DMS 278"""
input_data = "r0000501001001001001_01101_0001_WFI01_cal.asdf"
rtdata.get_data(f"WFI/grism/{input_data}")
rtdata.input = input_data

# Test Pipeline
output = "r0000501001001001001_01101_0001_WFI01_cal_thumb.png"
rtdata.output = output
args = [
"roman_static_preview",
"thumbnail",
rtdata.input,
]
subprocess.run(args)
assert os.path.exists(rtdata.output) is True

0 comments on commit 6dada04

Please sign in to comment.