class_docstr: Unit tests for SEVIRI netCDF reader.
class_docstr_tok: ["Unit","tests","for","SEVIRI","netCDF","reader","."]
docstr: Test satellite position if there is no valid orbit polynomial.
docstr_tok: ["Test","satellite","position","if","there","is","no","valid","orbit","polynomial","."]
code: def test_satpos_no_valid_orbit_polynomial(self, file_handler):
      """Test satellite position if there is no valid orbit polynomial."""
      dataset_id = make_dataid(name="VIS006", calibration="counts")
      dataset_info = {
          "name": "VIS006",
          "nc_key": "ch1",
          "units": "units",
          "wavelength": "wavelength",
          "standard_name": "standard_name",
      }
      file_handler.nc["orbit_polynomial_start_time_day"] = 0
      file_handler.nc["orbit_polynomial_end_time_day"] = 0
      with pytest.warns(
          UserWarning, match=r"No orbit polynomial valid for"
      ):
          res = file_handler.get_dataset(dataset_id, dataset_info)
      assert (
          "satellite_actual_longitude"
          not in res.attrs["orbital_parameters"]
      )
  
imports: from datetime import datetime
  from unittest import mock
  import numpy
  import pytest
  import xarray
  from satpy.readers.seviri_l1b_nc import NCSEVIRIFileHandler
  from satpy.tests.reader_tests.test_seviri_base import ORBIT_POLYNOMIALS
  from satpy.tests.reader_tests.test_seviri_l1b_calibration import TestFileHandlerCalibrationBase
  from satpy.tests.utils import assert_attrs_equal, make_dataid
label_desc: Use image node_id 9 for calling the TestNCSEVIRIFileHandler obj's underlying member method code with example usage: obj.test_satpos_no_valid_orbit_polynomial(file_handler) without return types