Python : Fix vector count for ESMRY and use tmp folder for export

This commit is contained in:
Magne Sjaastad 2021-10-13 14:23:04 +02:00
parent 77ac6606c1
commit 68955dc914
2 changed files with 2 additions and 4 deletions

View File

@ -37,9 +37,9 @@ def test_summary_data(rips_instance, initialize_test):
assert summary_case.id == 1
addresses = summary_case.available_addresses()
# Summary reader type is controlled from Preferences. libecl reports 343 vectors, opm_common reports 361.
# Summary reader type is controlled from Preferences. libecl reports 343 vectors, opm_common (ESMRY) reports 310.
# As this configuration can be different, allow both variants
assert len(addresses.values) == 343 or len(addresses.values) == 361
assert len(addresses.values) == 343 or len(addresses.values) == 310
summary_data = summary_case.summary_vector_values("FOPT")
assert len(summary_data.values) == 60

View File

@ -14,7 +14,6 @@ def test_10k(rips_instance, initialize_test):
project = rips_instance.project.open(path=project_path)
export_folder = tempfile.gettempdir()
# export_folder = "e:/temp/msj"
rips_instance.set_export_folder(export_type="COMPLETIONS", path=export_folder)
@ -23,5 +22,4 @@ def test_10k(rips_instance, initialize_test):
time_step=1,
well_path_names=["Well-1"],
file_split="UNIFIED_FILE",
custom_file_name="msj.jadda",
)