Skip to content

Commit

Permalink
pybamm-team#3428 check if error is raised + coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Oct 9, 2023
1 parent 8c7157b commit ae7dc73
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/test_parameters/test_parameter_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,10 @@ 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"):
pybamm.ParameterValues(
{"Exchange-current density for plating": 0.001})

def test_process_symbol(self):
parameter_values = pybamm.ParameterValues({"a": 4, "b": 2, "c": 3})
Expand Down

0 comments on commit ae7dc73

Please sign in to comment.