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

Fix test_sunsch #700

Merged
merged 1 commit into from
May 14, 2024
Merged

Fix test_sunsch #700

merged 1 commit into from
May 14, 2024

Conversation

alifbe
Copy link
Collaborator

@alifbe alifbe commented May 13, 2024

The latest opm has implemented check for valid UDQ based on its name. This create issue with sunsch test.

OPM/opm-common#3842

This PR fixes the test that failed due to the changes.

assert "A-007" in str(sch)
assert "<ORAT>" in str(sch)
# (this error is let through sunsch)

# Let the date be undefined.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opm doesn't accept argument anymore. Previously, it was taken as UDQ, but now it's flagged as invalid UDQ (with the new name validation)

@@ -776,7 +759,7 @@ def test_weltarg_uda(tmp_path):
"""WELTARG supports UDA from opm-common 2020.10"""
os.chdir(tmp_path)
weltargkeyword = """WELTARG
'OP-1' ORAT SOMEUDA /
'OP-1' ORAT WU_VALUE /
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Replace SOMEUDA with WU_VALUE to meet the valid UDQ name criteria.

@alifbe alifbe requested review from mferrera, rnyb, vkip and berland May 13, 2024 10:28
Copy link
Collaborator

@berland berland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine!

@alifbe alifbe merged commit b4a7737 into equinor:main May 14, 2024
6 checks passed
@alifbe alifbe deleted the fix-sunsch-test branch May 14, 2024 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants