Skip to content

Commit

Permalink
Skip second R tutorial test if first one fails
Browse files Browse the repository at this point in the history
  • Loading branch information
glatterf42 committed Sep 11, 2024
1 parent d469fd3 commit a494ad5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ixmp/tests/test_tutorials.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def test_py_transport_scenario(tutorial_path, tmp_path, tmp_env):
assert np.isclose(get_cell_output(nb, "scen-detroit-z")["lvl"], 161.324)


@pytest.mark.dependency()
@pytest.mark.xdist_group(name=f"{group_base_name}-1")
@pytest.mark.rixmp
# TODO investigate and resolve the cause of the time outs; remove this mark
Expand All @@ -56,6 +57,7 @@ def test_R_transport(tutorial_path, tmp_path, tmp_env):
assert errors == []


@pytest.mark.dependency(depends=["test_R_transport"])
@pytest.mark.xdist_group(name=f"{group_base_name}-1")
@pytest.mark.rixmp
# TODO investigate and resolve the cause of the time outs; remove this mark
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ tests = [
"pytest >= 5",
"pytest-benchmark",
"pytest-cov",
"pytest-dependency",
"pytest-rerunfailures",
"pytest-xdist",
]
Expand Down

0 comments on commit a494ad5

Please sign in to comment.