1010import numpy
1111import pandas
1212import pooch
13+ import pyproj
1314import pytest
1415import scipy
1516import traitlets
2526def pytest_report_header (config , startdir ):
2627 """Add dependency information to pytest output."""
2728 return (f'Dep Versions: Matplotlib { matplotlib .__version__ } , '
28- f'NumPy { numpy .__version__ } , SciPy { scipy .__version__ } , '
29- f'Xarray { xarray .__version__ } , Pint { pint . __version__ } , '
30- f'Pandas { pandas .__version__ } , Traitlets { traitlets .__version__ } , '
31- f'Pooch { pooch . version . full_version } ' )
29+ f'NumPy { numpy .__version__ } , Pandas { pandas .__version__ } , '
30+ f'Pint { pint .__version__ } , Pooch { pooch . version . full_version } \n '
31+ f'\t PyProj { pyproj .__version__ } , SciPy { scipy .__version__ } , '
32+ f'Traitlets { traitlets . __version__ } , Xarray { xarray . __version__ } ' )
3233
3334
3435@pytest .fixture (autouse = True )
@@ -45,6 +46,7 @@ def ccrs():
4546
4647 Any testing function/fixture that needs access to ``cartopy.crs`` can simply add this to
4748 their parameter list.
49+
4850 """
4951 return pytest .importorskip ('cartopy.crs' )
5052
@@ -55,15 +57,14 @@ def cfeature():
5557
5658 Any testing function/fixture that needs access to ``cartopy.feature`` can simply add this
5759 to their parameter list.
60+
5861 """
5962 return pytest .importorskip ('cartopy.feature' )
6063
6164
6265@pytest .fixture ()
6366def test_da_lonlat ():
6467 """Return a DataArray with a lon/lat grid and no time coordinate for use in tests."""
65- pytest .importorskip ('cartopy' )
66-
6768 data = numpy .linspace (300 , 250 , 3 * 4 * 4 ).reshape ((3 , 4 , 4 ))
6869 ds = xarray .Dataset (
6970 {'temperature' : (['isobaric' , 'lat' , 'lon' ], data )},
@@ -96,8 +97,6 @@ def test_da_lonlat():
9697@pytest .fixture ()
9798def test_da_xy ():
9899 """Return a DataArray with a x/y grid and a time coordinate for use in tests."""
99- pytest .importorskip ('cartopy' )
100-
101100 data = numpy .linspace (300 , 250 , 3 * 3 * 4 * 4 ).reshape ((3 , 3 , 4 , 4 ))
102101 ds = xarray .Dataset (
103102 {'temperature' : (['time' , 'isobaric' , 'y' , 'x' ], data ),
0 commit comments