Skip to content

Commit

Permalink
fix test order
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin W. Portner committed Feb 13, 2023
1 parent da05d14 commit 513d895
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions tests/pint_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,13 @@ def test_parameterized_exchange_recalculate(use_pint):
assert obj["unit"] == "second"


def test_error_if_recalculated_without_pint(use_pint):
config.use_pint_parameters = False
with pytest.raises(bw2parameters.MissingName):
ActivityParameter.recalculate_exchanges("some_group")
config.use_pint_parameters = True


def test_mix_parameters_with_and_without_units(use_pint):
ProjectParameter.create(
name="p_proj2",
Expand Down Expand Up @@ -209,10 +216,3 @@ def test_mix_parameters_optional_units(use_pint):
assert obj.dict["unit"] == "kilogram"
config.use_pint_parameters = True


def test_error_if_recalculated_without_pint(use_pint):
config.use_pint_parameters = False
with pytest.raises(bw2parameters.MissingName):
ActivityParameter.recalculate_exchanges("some_group")
config.use_pint_parameters = True

0 comments on commit 513d895

Please sign in to comment.