Skip to content

Commit

Permalink
Fix test ri_wellmod
Browse files Browse the repository at this point in the history
  • Loading branch information
alifbe committed Mar 5, 2024
1 parent 98679e6 commit 28dfde0
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/subscript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,7 @@ jobs:
- name: Force correct RIPS version
run: |
ResInsight --console --help | grep "ResInsight v. 2021.06" \
&& pip install rips==2021.6.0.1 || true
ResInsight --console --help | grep "ResInsight v. 2020.10" \
&& pip install rips==2020.10.0.2 || true
pip install rips~=`ResInsight --console --help | grep "ResInsight v." | cut -d ' ' -f 3 | sed 's/\b0\+\([1-9]\)/\1/g'`
- name: List all installed packages
run: pip freeze
Expand Down
17 changes: 0 additions & 17 deletions tests/test_ri_wellmod.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,6 @@ def file_contains(filename, string_to_find):
return filetext.find(string_to_find) >= 0


def github_online_runner():
gh_runner = os.getenv("GITHUB_ACTIONS") == "true"

# we still want to run tests on github actions local (komodo) runners
local_gh_runner = "f_scout_ci" in str(os.getenv("RUNNER_NAME"))
return gh_runner and not local_gh_runner


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


@pytest.mark.skipif(
github_online_runner(), reason="Cannot test on github online runner"
)
@pytest.mark.skipif(
not has_resinsight(),
reason="Could not find a ResInsight executable",
Expand Down Expand Up @@ -241,9 +230,6 @@ def test_ert_forward_model(tmp_path):


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


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

0 comments on commit 28dfde0

Please sign in to comment.