Skip to content

Commit

Permalink
fix/test(timeaverage): check against ValueError when there are no chu…
Browse files Browse the repository at this point in the history
…nks in the data
  • Loading branch information
pgierz committed Nov 26, 2024
1 parent edf7764 commit f03e5be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/unit/test_timeaverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,9 @@ def test__split_by_chunks_no_chunks():
# ...get back the same data?
# assert data == pymorize.timeaverage._split_by_chunks(data)
# or
# ...get an error?
with pytest.raises(TypeError):
# ...get an error? ValueError? The Chatbot agrees:
# https://chatgpt.com/share/67458273-1368-8013-a1cc-7db511c18549
with pytest.raises(ValueError):
list(pymorize.timeaverage._split_by_chunks(data))


Expand Down

0 comments on commit f03e5be

Please sign in to comment.