From 2e27c2af313a9f7588b8bba37c01ce5fb0072801 Mon Sep 17 00:00:00 2001 From: pcriadoperez Date: Wed, 11 Dec 2024 03:35:32 -0600 Subject: [PATCH] fix tests --- tests/test_helpers.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_helpers.py b/tests/test_helpers.py index b7ea5137..a7b14262 100644 --- a/tests/test_helpers.py +++ b/tests/test_helpers.py @@ -47,13 +47,13 @@ def test_round_step_size_precision(): def test_round_step_size_always_rounds_down(): """Test that values are always rounded down""" assert round_step_size(1.19, 0.1) == 1.1 - assert round_step_size(1.99, 1.0) == 1.0 + assert round_step_size(1.99, 1.0) == 1.9 assert round_step_size(0.99999, 0.1) == 0.9 def test_round_step_size_invalid_inputs(): """Test error handling for invalid inputs""" - with pytest.raises(TypeError): + with pytest.raises(InvalidOperation): round_step_size(None, 0.1) # type: ignore with pytest.raises((ValueError, InvalidOperation)):