From 5d1bd1b08aab7641f06e373b62f5468f952024c8 Mon Sep 17 00:00:00 2001 From: Zach Sherman Date: Wed, 27 Apr 2022 12:44:51 -0500 Subject: [PATCH] FIX: PySP2 not optional in qc tests. (#453) * FIX: pysp2 was not fully optional. * FIX: Another pysp2 optional not optional. --- act/tests/test_qc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/act/tests/test_qc.py b/act/tests/test_qc.py index 677ab02a98..ccea24e877 100644 --- a/act/tests/test_qc.py +++ b/act/tests/test_qc.py @@ -11,7 +11,7 @@ from act.qc.arm import add_dqr_to_qc from act.qc.qcfilter import parse_bit, set_bit, unset_bit from act.qc.radiometer_tests import fft_shading_test -from act.qc.sp2 import SP2ParticleCriteria +from act.qc.sp2 import SP2ParticleCriteria, PYSP2_AVAILABLE from act.tests import ( EXAMPLE_CEIL1, EXAMPLE_CO2FLX4M, @@ -1023,6 +1023,7 @@ def test_qc_speed(): assert time_diff.seconds <= 3 +@pytest.mark.skipif(not PYSP2_AVAILABLE, reason="PySP2 is not installed.") def test_sp2_particle_config(): particle_config_object = SP2ParticleCriteria() assert particle_config_object.ScatMaxPeakHt1 == 60000