class_docstr: Test NIR reflectance compositor.
docstr: Check that sun_zenith_threshold is not None.
docstr_tok: ["Check","that","sun_zenith_threshold","is","not","None","."]
code: def test_sunz_threshold_default_value_is_not_none(
      self, calculator, apply_modifier_info, sza
  ):
      """Check that sun_zenith_threshold is not None."""
      from satpy.modifiers.spectral import NIRReflectance
  
      comp = NIRReflectance(name="test")
      info = {"modifiers": None}
      calculator.return_value = mock.MagicMock(
          reflectance_from_tbs=self.refl_from_tbs
      )
      comp([self.nir, self.ir_], optional_datasets=[self.sunz], **info)
  
      assert comp.sun_zenith_threshold is not None
  
imports: import unittest
  from datetime import datetime
  from unittest import mock
  import dask.array
  import numpy
  import pytest
  import xarray
  from pyresample.geometry import AreaDefinition, StackedAreaDefinition
  from pytest_lazyfixture import lazy_fixture
label_desc: Use image node_id 7 for calling the TestNIRReflectance obj's underlying member method code with example usage: obj.test_sunz_threshold_default_value_is_not_none(calculator, apply_modifier_info, sza) without return types