From 8872f51b6a8e29579991a4837f94dc028c16914a Mon Sep 17 00:00:00 2001 From: Aadil Latif Date: Wed, 17 Jun 2026 06:56:31 -0600 Subject: [PATCH] Fix SonarQube floating-point equality warnings in test_market_models.py --- tests/test_market_models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_market_models.py b/tests/test_market_models.py index 2aec368e..d9e92713 100644 --- a/tests/test_market_models.py +++ b/tests/test_market_models.py @@ -41,8 +41,8 @@ def test_total_lmp_property(self): def test_defaults_zero_congestion_and_loss(self): lmp = LMPRate(energy_rate=40.0) - assert lmp.congestion_rate == 0.0 - assert lmp.loss_rate == 0.0 + assert lmp.congestion_rate == pytest.approx(0.0) + assert lmp.loss_rate == pytest.approx(0.0) assert lmp.total_lmp == pytest.approx(40.0)