Skip to content

Commit

Permalink
Use resinsightdaily in test_ri_wellmod
Browse files Browse the repository at this point in the history
Remove xfail pytestmark
Skip tests failing online on github runners

These tests were all marked as xfail before, and they still fail due to either
resinsight or lack of drogon/reek data.
Marking these again will allow progress until this is resolved.

Fixup
  • Loading branch information
andreas-el committed Mar 4, 2024
1 parent 289e48d commit 8bb99a1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions tests/test_ri_wellmod.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,9 @@
import pytest
from subscript.ri_wellmod import ri_wellmod

pytestmark = pytest.mark.xfail()

SCRIPTNAME = "ri_wellmod"
DATAPATH = Path(__file__).parent / "testdata_ri_wellmod"
RI_DEV = "/project/res/x86_64_RH_7/share/resinsight/jenkins_dev/ResInsight"
RI_DEV = "/project/res/bin/resinsightdev"

try:
# pylint: disable=unused-import
Expand Down Expand Up @@ -62,6 +60,10 @@ def file_contains(filename, string_to_find):
return filetext.find(string_to_find) >= 0


def github_runner():
return os.getenv("GITHUB_ACTIONS") == "true"


@pytest.mark.integration
def test_integration():
"""Test that endpoint is installed"""
Expand All @@ -85,6 +87,7 @@ def test_main_initcase(tmp_path, mocker):
assert Path(outfile).exists() and file_contains(outfile, "A4")


@pytest.mark.skipif(github_runner(), reason="Cannot run test on github runner")
@pytest.mark.skipif(
not has_resinsight(),
reason="Could not find a ResInsight executable",
Expand Down Expand Up @@ -232,6 +235,7 @@ def test_ert_forward_model(tmp_path):


# REEK TESTS
@pytest.mark.skipif(github_runner(), reason="Cannot run test on github runner")
@pytest.mark.skipif(
not has_resinsight(), reason="Could not find a ResInsight executable"
)
Expand All @@ -248,6 +252,7 @@ def test_main_initcase_reek(tmp_path, mocker):
assert Path(outfile).exists() and file_contains(outfile, "OP_1")


@pytest.mark.skipif(github_runner(), reason="Cannot run test on github runner")
@pytest.mark.skipif(
not has_resinsight(), reason="Could not find a ResInsight executable"
)
Expand Down

0 comments on commit 8bb99a1

Please sign in to comment.