Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
rtimms committed Dec 3, 2024
1 parent 4000e2b commit a7d995a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/unit/test_parameters/test_bpx.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,8 +263,9 @@ def test_table_data(self):
assert isinstance(dUdT, pybamm.Interpolant)

def test_bpx_soc_error(self):
bpx_obj = copy.copy(self.base)
with pytest.raises(ValueError, match="Target SOC"):
pybamm.ParameterValues.create_from_bpx("blah.json", target_soc=10)
pybamm.ParameterValues.create_from_bpx_obj(bpx_obj, target_soc=10)

def test_bpx_arrhenius(self):
bpx_obj = copy.copy(self.base)
Expand Down

0 comments on commit a7d995a

Please sign in to comment.