Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[TEST] Fixing tests that return stuff (breaking changing from pytest)
  • Loading branch information
Leguark committed Jun 11, 2025
commit e4eb6b8c7e81a1cd9eb5293cd52f9c3ec304f715
3 changes: 0 additions & 3 deletions test/test_api/test_initialization_and_compute_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,7 @@

def test_api_create_data():
geo_data = _create_data()

pprint(geo_data)

return geo_data


def _create_data():
Expand Down
12 changes: 6 additions & 6 deletions test/test_api/test_model_construction_granular.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def _generate_interpolation_options():
return interpolation_options


def test_create_geomodel() -> GeoModel:
def _create_geomodel() -> GeoModel:
geo_model: GeoModel = GeoModel.from_args(
name="horizontal",
structural_frame=_create_structural_frame(),
Expand All @@ -124,8 +124,8 @@ def test_structural_frame_surface_points():
pass


def test_interpolate_numpy() -> GeoModel:
geo_model: GeoModel = test_create_geomodel()
def _interpolate_numpy() -> GeoModel:
geo_model: GeoModel = _create_geomodel()

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


def test_interpolate_aesara():
geo_model: GeoModel = test_create_geomodel()
geo_model: GeoModel = _create_geomodel()


def test_plot_input():
geo_model: GeoModel = test_create_geomodel()
geo_model: GeoModel = _create_geomodel()
gp_viewer: gempy_viewer = require_gempy_viewer()
# TODO: Add all the plot data in a plot options class

Expand All @@ -169,7 +169,7 @@ def test_plot_input():


def test_plot_results():
solved_geo_model: GeoModel = test_interpolate_numpy()
solved_geo_model: GeoModel = _interpolate_numpy()
gp_viewer: gempy_viewer = require_gempy_viewer()

gp_viewer.plot_2d(
Expand Down