Skip to content

Commit

Permalink
FIX: PySP2 not optional in qc tests. (#453)
Browse files Browse the repository at this point in the history
* FIX: pysp2 was not fully optional.

* FIX: Another pysp2 optional not optional.
  • Loading branch information
zssherman committed Apr 27, 2022
1 parent fab2c78 commit 5d1bd1b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion act/tests/test_qc.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 5d1bd1b

Please sign in to comment.