From 3e4d07cbe91f84f01a543129468baf15d75469be Mon Sep 17 00:00:00 2001 From: Magne Sjaastad Date: Wed, 4 Aug 2021 18:57:45 +0200 Subject: [PATCH] Allow two different counts for summary vector reader --- GrpcInterface/Python/rips/tests/test_summary_cases.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/GrpcInterface/Python/rips/tests/test_summary_cases.py b/GrpcInterface/Python/rips/tests/test_summary_cases.py index 5cb753ca42..b80bf7d641 100644 --- a/GrpcInterface/Python/rips/tests/test_summary_cases.py +++ b/GrpcInterface/Python/rips/tests/test_summary_cases.py @@ -37,7 +37,9 @@ def test_summary_data(rips_instance, initialize_test): assert summary_case.id == 1 addresses = summary_case.available_addresses() - assert len(addresses.values) == 343 + # Summary reader type is controlled from Preferences. libecl reports 343 vectors, opm_common reports 361. + # As this configuration can be different, allow both variants + assert len(addresses.values) == 343 or len(addresses.values) == 361 summary_data = summary_case.summary_vector_values("FOPT") assert len(summary_data.values) == 60