From 3ccaed13a62bfe83a79800f6186ebf375f87ca2c Mon Sep 17 00:00:00 2001 From: Stefaan Lippens Date: Thu, 25 Jan 2024 15:12:40 +0100 Subject: [PATCH] PR #37 quickfix for slow individual process testing --- src/openeo_test_suite/lib/process_selection.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/openeo_test_suite/lib/process_selection.py b/src/openeo_test_suite/lib/process_selection.py index 4b21f27..e744a68 100644 --- a/src/openeo_test_suite/lib/process_selection.py +++ b/src/openeo_test_suite/lib/process_selection.py @@ -1,3 +1,4 @@ +import functools import logging from dataclasses import dataclass from typing import Iterable, List, Optional, Union @@ -39,6 +40,8 @@ def set_process_selection_from_config(config: pytest.Config): ) +# TODO: more structural/testable solution for get_selected_processes related caching? +@functools.lru_cache() def get_selected_processes() -> Iterable[ProcessData]: """ Get effective list of processes extracted from the process registry