Skip to content

Commit

Permalink
Replace pytest-lazyfixture with pytest-lazy-fixtures
Browse files Browse the repository at this point in the history
  • Loading branch information
mraspaud committed May 17, 2024
1 parent a1311a6 commit 567df9d
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion continuous_integration/environment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ dependencies:
- eccodes>=2.20
- pytest<8.0.0
- pytest-cov
- pytest-lazy-fixture
- fsspec
- botocore>=1.33
- s3fs
Expand All @@ -59,6 +58,7 @@ dependencies:
- ephem
- bokeh
- pip:
- pytest-lazy-fixtures
- trollsift
- trollimage>=1.23
- pyspectral
Expand Down
8 changes: 4 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ hvplot = ["hvplot", "geoviews", "cartopy", "holoviews"]
overlays = ["pycoast", "pydecorate"]
satpos_from_tle = ["skyfield", "astropy"]
tests = ["behave", "h5py", "netCDF4", "pyhdf", "imageio",
"rasterio", "geoviews", "trollimage", "fsspec", "bottleneck",
"rioxarray", "pytest", "pytest-lazy-fixture", "defusedxml",
"s3fs", "eccodes", "h5netcdf", "xarray-datatree",
"skyfield", "ephem", "pint-xarray", "astropy", "dask-image", "python-geotiepoints", "numba"]
"rasterio", "geoviews", "trollimage", "fsspec", "bottleneck",
"rioxarray", "pytest", "pytest-lazy-fixtures", "defusedxml",
"s3fs", "eccodes", "h5netcdf", "xarray-datatree",
"skyfield", "ephem", "pint-xarray", "astropy", "dask-image", "python-geotiepoints", "numba"]

[project.scripts]
satpy_retrieve_all_aux_data = "satpy.aux_download:retrieve_all_cmd"
Expand Down
2 changes: 1 addition & 1 deletion satpy/tests/reader_tests/modis_tests/test_modis_l1b.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
import dask
import numpy as np
import pytest
from pytest_lazyfixture import lazy_fixture
from pytest_lazy_fixtures import lf as lazy_fixture

from satpy import Scene, available_readers
from satpy.tests.utils import CustomScheduler, make_dataid
Expand Down
2 changes: 1 addition & 1 deletion satpy/tests/reader_tests/modis_tests/test_modis_l2.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import dask.array as da
import numpy as np
import pytest
from pytest_lazyfixture import lazy_fixture
from pytest_lazy_fixtures import lf as lazy_fixture

from satpy import Scene, available_readers
from satpy.tests.utils import CustomScheduler, make_dataid
Expand Down
2 changes: 1 addition & 1 deletion satpy/tests/reader_tests/modis_tests/test_modis_l3.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import numpy as np
import pytest
from pyresample import geometry
from pytest_lazyfixture import lazy_fixture
from pytest_lazy_fixtures import lf as lazy_fixture

from satpy import Scene, available_readers

Expand Down
2 changes: 1 addition & 1 deletion satpy/tests/reader_tests/test_abi_l1b.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import numpy.typing as npt
import pytest
import xarray as xr
from pytest_lazyfixture import lazy_fixture
from pytest_lazy_fixtures import lf as lazy_fixture

from satpy import DataQuery
from satpy.readers.abi_l1b import NC_ABI_L1B
Expand Down
2 changes: 1 addition & 1 deletion satpy/tests/reader_tests/test_fci_l1c_nc.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
import pytest
import xarray as xr
from netCDF4 import default_fillvals
from pytest_lazyfixture import lazy_fixture
from pytest_lazy_fixtures import lf as lazy_fixture

from satpy.readers.fci_l1c_nc import FCIL1cNCFileHandler
from satpy.tests.reader_tests.test_netcdf_utils import FakeNetCDF4FileHandler
Expand Down
2 changes: 1 addition & 1 deletion satpy/tests/reader_tests/test_goci2_l2_nc.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import numpy as np
import pytest
import xarray as xr
from pytest_lazyfixture import lazy_fixture
from pytest_lazy_fixtures import lf as lazy_fixture

from satpy import Scene
from satpy.tests.utils import RANDOM_GEN
Expand Down
2 changes: 1 addition & 1 deletion satpy/tests/reader_tests/test_seadas_l2.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import numpy as np
import pytest
from pyresample.geometry import SwathDefinition
from pytest_lazyfixture import lazy_fixture
from pytest_lazy_fixtures import lf as lazy_fixture

from satpy import Scene, available_readers

Expand Down
2 changes: 1 addition & 1 deletion satpy/tests/reader_tests/test_viirs_edr.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import xarray as xr
from pyresample import SwathDefinition
from pytest import TempPathFactory # noqa: PT013
from pytest_lazyfixture import lazy_fixture
from pytest_lazy_fixtures import lf as lazy_fixture

from satpy.tests.utils import RANDOM_GEN

Expand Down
2 changes: 1 addition & 1 deletion satpy/tests/test_modifiers.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
import pytest
import xarray as xr
from pyresample.geometry import AreaDefinition, StackedAreaDefinition
from pytest_lazyfixture import lazy_fixture
from pytest_lazy_fixtures import lf as lazy_fixture

from satpy.tests.utils import RANDOM_GEN

Expand Down
2 changes: 1 addition & 1 deletion satpy/tests/test_readers.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
import numpy as np
import pytest
import xarray as xr
from pytest_lazyfixture import lazy_fixture
from pytest_lazy_fixtures import lf as lazy_fixture

from satpy.dataset.data_dict import get_key
from satpy.dataset.dataid import DataID, ModifierTuple, WavelengthRange
Expand Down

0 comments on commit 567df9d

Please sign in to comment.