Skip to content

Commit e4eb6b8

Browse files
committed
[TEST] Fixing tests that return stuff (breaking changing from pytest)
1 parent 04f4355 commit e4eb6b8

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

test/test_api/test_initialization_and_compute_api.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,7 @@
99

1010
def test_api_create_data():
1111
geo_data = _create_data()
12-
1312
pprint(geo_data)
14-
15-
return geo_data
1613

1714

1815
def _create_data():

test/test_api/test_model_construction_granular.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def _generate_interpolation_options():
107107
return interpolation_options
108108

109109

110-
def test_create_geomodel() -> GeoModel:
110+
def _create_geomodel() -> GeoModel:
111111
geo_model: GeoModel = GeoModel.from_args(
112112
name="horizontal",
113113
structural_frame=_create_structural_frame(),
@@ -124,8 +124,8 @@ def test_structural_frame_surface_points():
124124
pass
125125

126126

127-
def test_interpolate_numpy() -> GeoModel:
128-
geo_model: GeoModel = test_create_geomodel()
127+
def _interpolate_numpy() -> GeoModel:
128+
geo_model: GeoModel = _create_geomodel()
129129

130130
solutions: gempy_engine.core.data.solutions.Solutions = gempy_engine.compute_model(
131131
interpolation_input=geo_model.interpolation_input_copy,
@@ -152,11 +152,11 @@ def test_interpolate_numpy() -> GeoModel:
152152

153153

154154
def test_interpolate_aesara():
155-
geo_model: GeoModel = test_create_geomodel()
155+
geo_model: GeoModel = _create_geomodel()
156156

157157

158158
def test_plot_input():
159-
geo_model: GeoModel = test_create_geomodel()
159+
geo_model: GeoModel = _create_geomodel()
160160
gp_viewer: gempy_viewer = require_gempy_viewer()
161161
# TODO: Add all the plot data in a plot options class
162162

@@ -169,7 +169,7 @@ def test_plot_input():
169169

170170

171171
def test_plot_results():
172-
solved_geo_model: GeoModel = test_interpolate_numpy()
172+
solved_geo_model: GeoModel = _interpolate_numpy()
173173
gp_viewer: gempy_viewer = require_gempy_viewer()
174174

175175
gp_viewer.plot_2d(

0 commit comments

Comments
 (0)