Skip to content

Commit

Permalink
Adjust test marks for #225
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru authored and GamzeUnlu95 committed Dec 4, 2024
1 parent 8162acd commit b1cf6a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 16 deletions.
10 changes: 1 addition & 9 deletions message_ix_models/tests/model/transport/test_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import genno
import pytest
from message_ix import ModelError
from pytest import mark, param

from message_ix_models import ScenarioInfo
Expand Down Expand Up @@ -60,13 +59,7 @@ def test_configure_legacy():
"regions, years",
(
param("R11", "A", marks=MARK[2](ValueError)),
param(
"R12",
"A",
marks=pytest.mark.xfail(
raises=ModelError, reason="Temporary, for message-ix-models#213"
),
),
("R12", "A"),
param("R14", "A", marks=MARK[2](genno.ComputationError)),
param("ISR", "A", marks=MARK[3]),
),
Expand Down Expand Up @@ -132,7 +125,6 @@ def test_simulated_solution(request, test_context, regions="R12", years="B"):
assert 0 < len(result)


@pytest.mark.xfail(condition=GHA, reason="Temporary, for #213; fails on GitHub Actions")
@build.get_computer.minimum_version
@mark.usefixtures("quiet_genno")
@pytest.mark.parametrize(
Expand Down
8 changes: 1 addition & 7 deletions message_ix_models/tests/tools/iea/test_web.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,7 @@ def test_prepare_computer(self, test_context, source, source_kw):
GHA or not HAS_MESSAGE_DATA, reason="No fuzzed version of this data"
),
),
pytest.param(
"IEA",
"2024",
marks=pytest.mark.xfail(
GHA or not HAS_MESSAGE_DATA, reason="No fuzzed version of this data"
),
),
("IEA", "2024"),
("OECD", "2021"),
("OECD", "2022"),
("OECD", "2023"),
Expand Down

0 comments on commit b1cf6a4

Please sign in to comment.