From 3a41e3f9010128eca050ebfd94be03c427365015 Mon Sep 17 00:00:00 2001 From: Roy Willy Haug <5484176+roywilly@users.noreply.github.com> Date: Fri, 1 Nov 2024 12:12:48 +0100 Subject: [PATCH] Fix tests to adapt to new version of fmu-sumo (#102) --- tests/test_uploads_from_komodo.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/test_uploads_from_komodo.py b/tests/test_uploads_from_komodo.py index 1b95e00..6310005 100644 --- a/tests/test_uploads_from_komodo.py +++ b/tests/test_uploads_from_komodo.py @@ -83,7 +83,7 @@ def _get_suitable_cases(explorer): # Too old for this nightly test print("Too old:", case_created, case.uuid) continue - if len(case.get_realizations()) < 1: + if len(case.realizations) < 1: # Skip cases wo realizations, typically these are # failed runs in komodo-releases / ert print("Too few realizations:", case_created, case.uuid) @@ -119,7 +119,7 @@ def test_case_surfaces(explorer: Explorer): cases = _get_suitable_cases(explorer) perfect_cases = 0 for case in cases: - realizations = len(case.get_realizations()) + realizations = len(case.realizations) iter_count = 0 real_count = 0 preproc_count = 0 @@ -178,7 +178,7 @@ def test_case_tables(explorer: Explorer): cases = _get_suitable_cases(explorer) perfect_cases = 0 for case in cases: - realizations = len(case.get_realizations()) + realizations = len(case.realizations) iter_count = 0 real_count = 0 tagname_count = 0 @@ -249,7 +249,7 @@ def test_case_polygons(explorer: Explorer): cases = _get_suitable_cases(explorer) perfect_cases = 0 for case in cases: - realizations = len(case.get_realizations()) + realizations = len(case.realizations) iter_count = 0 real_count = 0 tagname_count = 0 @@ -305,7 +305,7 @@ def test_case_dictionaries(explorer: Explorer): cases = _get_suitable_cases(explorer) perfect_cases = 0 for case in cases: - realizations = len(case.get_realizations()) + realizations = len(case.realizations) iter_count = 0 real_count = 0 tagname_count = 0 @@ -372,7 +372,7 @@ def test_case_seismic(explorer: Explorer): cases = _get_suitable_cases(explorer) perfect_cases = 0 for case in cases: - realizations = len(case.get_realizations()) + realizations = len(case.realizations) iter_count = 0 real_count = 0 for cube in case.cubes: