Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Bills committed Dec 13, 2024
1 parent 17293aa commit 864388f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/unit/test_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ def test_fuzzy_dict(self):
"Lithium plating current": 4,
"A dimensional variable [m]": 5,
"Positive particle diffusivity [m2.s-1]": 6,
"Primary: Open circuit voltage [V]": 7,
}
)
d2 = pybamm.FuzzyDict(
Expand All @@ -52,6 +53,9 @@ def test_fuzzy_dict(self):
with pytest.raises(KeyError, match="dimensional version"):
d.__getitem__("A dimensional variable")

with pytest.raises(KeyError, match="composite model"):
d.__getitem__("Open circuit voltage [V]")

with pytest.raises(KeyError, match="open circuit voltage"):
d.__getitem__("Measured open circuit voltage [V]")

Expand Down

0 comments on commit 864388f

Please sign in to comment.