class_docstr: Test VISSR file handler.
class_docstr_tok: ["Test","VISSR","file","handler","."]
docstr: Patch data types so that each scanline has two pixels.
docstr_tok: ["Patch","data","types","so","that","each","scanline","has","two","pixels","."]
code: def _patch_number_of_pixels_per_scanline(self, monkeypatch):
      """Patch data types so that each scanline has two pixels."""
      num_pixels = 2
      IMAGE_DATA_BLOCK_IR = np.dtype(
          [
              ("LCW", fmt.LINE_CONTROL_WORD),
              ("DOC", fmt.U1, (256,)),
              ("image_data", fmt.U1, num_pixels),
          ]
      )
      IMAGE_DATA_BLOCK_VIS = np.dtype(
          [
              ("LCW", fmt.LINE_CONTROL_WORD),
              ("DOC", fmt.U1, (64,)),
              ("image_data", fmt.U1, (num_pixels,)),
          ]
      )
      IMAGE_DATA = {
          fmt.VIS_CHANNEL: {
              "offset": 6 * fmt.BLOCK_SIZE_VIS,
              "dtype": IMAGE_DATA_BLOCK_VIS,
          },
          fmt.IR_CHANNEL: {
              "offset": 18 * fmt.BLOCK_SIZE_IR,
              "dtype": IMAGE_DATA_BLOCK_IR,
          },
      }
      monkeypatch.setattr(
          "satpy.readers.gms.gms5_vissr_format.IMAGE_DATA_BLOCK_IR",
          IMAGE_DATA_BLOCK_IR,
      )
      monkeypatch.setattr(
          "satpy.readers.gms.gms5_vissr_format.IMAGE_DATA_BLOCK_VIS",
          IMAGE_DATA_BLOCK_VIS,
      )
      monkeypatch.setattr(
          "satpy.readers.gms.gms5_vissr_format.IMAGE_DATA", IMAGE_DATA
      )
  
imports: import datetime
  import gzip
  import fsspec
  import numpy
  import pytest
  import xarray
  from pyresample.geometry import AreaDefinition
  import satpy.tests.reader_tests.gms.test_gms5_vissr_data
  from satpy.readers import FSFile
  from satpy.tests.reader_tests.utils import get_jit_methods, skip_numba_unstable_if_missing
  from satpy.tests.utils import make_dataid
label_desc: Use image node_id 1 for calling the TestFileHandler obj's underlying member method code with example usage: obj._patch_number_of_pixels_per_scanline(monkeypatch) without return types