diff --git a/tests/test_stream.py b/tests/test_stream.py index 0ec0f7b..c051a4b 100644 --- a/tests/test_stream.py +++ b/tests/test_stream.py @@ -1044,9 +1044,18 @@ def test_throttle(self) -> None: msg="`throttle` should raise error when called with `per_second` < 1.", ): list(Stream([1]).throttle(per_second=0)) + with self.assertRaises( + ValueError, + msg="`throttle` should raise error when called with `per_minute` < 1.", + ): + list(Stream([1]).throttle(per_minute=0)) + with self.assertRaises( + ValueError, + msg="`throttle` should raise error when called with `per_hour` < 1.", + ): + list(Stream([1]).throttle(per_hour=0)) # test interval - interval_seconds = 0.3 super_slow_elem_pull_seconds = 1 N = 10