From 02d1e2a2e1b8865ffb2fca0cb7debc049f4d3ed9 Mon Sep 17 00:00:00 2001 From: kratman Date: Mon, 2 Oct 2023 20:15:50 -0400 Subject: [PATCH] Fix coverage --- tests/unit/test_settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/test_settings.py b/tests/unit/test_settings.py index 99310a42c1..a3b62f8ee4 100644 --- a/tests/unit/test_settings.py +++ b/tests/unit/test_settings.py @@ -37,6 +37,8 @@ def test_smoothing_parameters(self): pybamm.settings.heaviside_smoothing = -10 with self.assertRaisesRegex(ValueError, "positive number"): pybamm.settings.abs_smoothing = -10 + with self.assertRaisesRegex(ValueError, "'soft', or 'smooth'"): + pybamm.settings.min_max_mode = "unknown" pybamm.settings.set_smoothing_parameters("exact")