Skip to content

Commit

Permalink
fix: corrects test for undefined weight conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
pgierz committed Jul 17, 2024
1 parent 357b070 commit 4f74ba0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/test_units.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,10 @@ def test_non_caret_notation_raises_error():
ureg("kg m-2 s-1")


def test_without_defining_carbon_to_weight_conversion_raises_error():
def test_without_defining_uraninum_to_weight_conversion_raises_error():
"""Checks that only elements we added are defined"""
with pytest.raises(pint.errors.UndefinedUnitError):
ureg("mmolC/m**2/d")
ureg("mmolU/m**2/d")


def test_define_carbon_to_weight_conversion():
Expand Down

0 comments on commit 4f74ba0

Please sign in to comment.