Skip to content

Commit

Permalink
EditTests
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderJuestel committed Nov 27, 2023
1 parent 2c8cf19 commit 4a26523
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -894,11 +894,13 @@ def test_show_number_of_data_points(gdf_interfaces1_lines, gdf_orientations1, de
remove_unused_series=True)
geo_model.add_surfaces('basement')

show_number_of_data_points(geo_model)
df = show_number_of_data_points(geo_model)

assert {'No. of Interfaces', 'No. of Orientations'}.issubset(geo_model.surfaces.df)
assert geo_model.surfaces.df.loc[0]['No. of Interfaces'] == 5
assert geo_model.surfaces.df.loc[0]['No. of Orientations'] == 0
print(df)

assert {'No. of Interfaces', 'No. of Orientations'}.issubset(df.columns)
assert df.loc[0]['No. of Interfaces'] == 5
assert df.loc[0]['No. of Orientations'] == 0


# Testing assign_properties
Expand Down

0 comments on commit 4a26523

Please sign in to comment.