Remove unnecessary returns from surface tests
@@ -31,7 +31,6 @@ def test_surface_input_file():
assert isinstance(output, xr.DataArray)
assert output.gmt.registration == 0 # Gridline registration
assert output.gmt.gtype == 0 # Cartesian type
- return output
def test_surface_input_data_array(ship_data):
@@ -41,7 +40,6 @@ def test_surface_input_data_array(ship_data):
data = ship_data.values # convert pandas.DataFrame to numpy.ndarray
output = surface(data=data, spacing="5m", region=[245, 255, 20, 30])
assert isinstance(output, xr.DataArray)
- return output
def test_surface_input_xyz(ship_data):
@@ -56,7 +54,6 @@ def test_surface_input_xyz(ship_data):
region=[245, 255, 20, 30],
)
assert isinstance(output, xr.DataArray)
- return output
def test_surface_wrong_kind_of_input(ship_data):
@@ -84,7 +81,6 @@ def test_surface_with_outgrid_param(ship_data):
assert isinstance(grid, xr.DataArray) # ensure netcdf grid loads ok
finally:
os.remove(path=TEMP_GRID)
- return output
def test_surface_deprecate_outfile_to_outgrid(ship_data):
@@ -122,4 +118,3 @@ def test_surface_short_aliases(ship_data):
assert isinstance(grid, xr.DataArray) # ensure netcdf grid loads ok
finally:
os.remove(path=TEMP_GRID)
- return output
