From 9871d1a4a83d5b9c4a9baaebfb5f2e59a2ef36b3 Mon Sep 17 00:00:00 2001 From: clement laplace Date: Wed, 20 Nov 2024 11:17:50 +0000 Subject: [PATCH] test : Verify that all the dataset encapsulate a dask array --- satpy/tests/reader_tests/test_li_l2_nc.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/satpy/tests/reader_tests/test_li_l2_nc.py b/satpy/tests/reader_tests/test_li_l2_nc.py index 36cc930683..13981a37f4 100644 --- a/satpy/tests/reader_tests/test_li_l2_nc.py +++ b/satpy/tests/reader_tests/test_li_l2_nc.py @@ -19,6 +19,7 @@ import os from unittest import mock +import dask.array as da import numpy as np import pytest import xarray as xr @@ -128,6 +129,7 @@ def _test_dataset_variable(self, var_params, sname=""): res = self.get_variable_dataset(dataset_info, dname, handler) assert res.shape == shape assert res.dims[0] == "y" + assert isinstance(res.data,da.Array) # Should retrieve content with fullname key: full_name = self.create_fullname_key(desc, var_path, dname, sname=sname) # Note: 'content' is not recognized as a valid member of the class below