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)