Skip to content

Commit

Permalink
Failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
ecomodeller committed Nov 11, 2024
1 parent 3053600 commit 9d3360c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/test_dfsu.py
Original file line number Diff line number Diff line change
Expand Up @@ -992,3 +992,14 @@ def test_append_dfsu_2d(tmp_path):
assert (
ds3.V_velocity.isel(time=3).values[0] == ds2.V_velocity.isel(time=1).values[0]
)


def test_repr_dfsu_many_items_only_shows_number_of_items() -> None:
ds = mikeio.read("tests/testdata/random_data_20_items_2d.dfsu")
txt = repr(ds)
assert "number of items: 20" in txt

# repeat for mikeio.open
dfs = mikeio.open("tests/testdata/random_data_20_items_2d.dfsu")
txt_dfs = repr(dfs)
assert "number of items: 20" in txt_dfs
Binary file added tests/testdata/random_data_20_items_2d.dfsu
Binary file not shown.

0 comments on commit 9d3360c

Please sign in to comment.