Skip to content

Commit

Permalink
pybamm-team#3428 use assertRaises instead of assertRaisesRegex
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Oct 10, 2023
1 parent 5607acb commit c1ac296
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/test_parameters/test_parameter_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ def test_check_parameter_values(self):
# since + has other meanings in regex
with self.assertRaisesRegex(ValueError, "Thermodynamic factor"):
pybamm.ParameterValues({"1 + dlnf/dlnc": 1})
with self.assertRaisesRegex(
ValueError, "Exchange-current density for lithium-metal electrode [A.m-2]"):
# renamed to "Exchange-current density for lithium-metal electrode [A.m-2]"
with self.assertRaises(ValueError):
pybamm.ParameterValues(
{"Exchange-current density for plating [A.m-2]": 0.001})

Expand Down

0 comments on commit c1ac296

Please sign in to comment.