Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_swatinit: Change condition for testing using flow #675

Merged
merged 1 commit into from
Mar 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions tests/test_check_swatinit_simulators.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
)
from subscript.check_swatinit.pillarmodel import PillarModel

IN_GITHUB_ACTIONS = os.getenv("GITHUB_ACTIONS") == "true"
IN_SUBSCRIPT_GITHUB_ACTIONS = os.getenv("GITHUB_REPOSITORY") == "equinor/subscript"

pd.set_option("display.max_columns", 100)

Expand Down Expand Up @@ -284,7 +284,7 @@ def test_accepted_swatinit_in_gas(simulator, tmp_path):
assert np.isclose(qc_frame["PC"], actual_pc)


@pytest.mark.skipif(IN_GITHUB_ACTIONS, reason="Test require flow dev version")
@pytest.mark.skipif(IN_SUBSCRIPT_GITHUB_ACTIONS, reason="Test require flow dev version")
def test_swatinit_1_far_above_contact(simulator, tmp_path):
"""If SWATINIT is 1 far above the contact, we are in an unstable
situation (water should not be mobile e.g)
Expand Down Expand Up @@ -335,7 +335,7 @@ def test_swatinit_1_far_above_contact(simulator, tmp_path):
assert np.isnan(qc_frame["PC"][0])


@pytest.mark.skipif(IN_GITHUB_ACTIONS, reason="Test require flow dev version")
@pytest.mark.skipif(IN_SUBSCRIPT_GITHUB_ACTIONS, reason="Test require flow dev version")
def test_swatinit_1_slightly_above_contact(simulator, tmp_path):
"""If we are slightly above the contact, item 9 in EQUIL plays
a small role.
Expand Down Expand Up @@ -479,7 +479,7 @@ def test_swatinit_less_than_1_below_contact(simulator, tmp_path):
assert pd.isnull(qc_frame["PC"][0])


@pytest.mark.skipif(IN_GITHUB_ACTIONS, reason="Test require flow dev version")
@pytest.mark.skipif(IN_SUBSCRIPT_GITHUB_ACTIONS, reason="Test require flow dev version")
def test_swatinit_less_than_1_below_contact_neg_pc(simulator, tmp_path):
"""For an oil-wet system, there can be oil below free water level.

Expand Down Expand Up @@ -570,7 +570,7 @@ def test_swu(simulator, tmp_path):
assert qc_frame["QC_FLAG"][0] == __PC_SCALED__


@pytest.mark.skipif(IN_GITHUB_ACTIONS, reason="Test require flow dev version")
@pytest.mark.skipif(IN_SUBSCRIPT_GITHUB_ACTIONS, reason="Test require flow dev version")
def test_swu_equal_swatinit(simulator, tmp_path):
"""Test SWU equal to SWATINIT, this is the same as SWATINIT_1

Expand Down Expand Up @@ -603,7 +603,7 @@ def test_swu_equal_swatinit(simulator, tmp_path):
print(qc_frame)


@pytest.mark.skipif(IN_GITHUB_ACTIONS, reason="Test require flow dev version")
@pytest.mark.skipif(IN_SUBSCRIPT_GITHUB_ACTIONS, reason="Test require flow dev version")
def test_swu_lessthan_swatinit(simulator, tmp_path):
"""Test SWU equal to SWATINIT

Expand Down
Loading