From cdd2c26906f75eb02c1b96ddf25020b8b1f8247a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Misbach?= Date: Fri, 1 Dec 2023 20:41:35 +0100 Subject: [PATCH] [uss_qualifier] Make scenario doc cache attribute name depend on scenario name (#382) --- monitoring/uss_qualifier/scenarios/documentation/parsing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/monitoring/uss_qualifier/scenarios/documentation/parsing.py b/monitoring/uss_qualifier/scenarios/documentation/parsing.py index 7975e576d6..c8f03792ac 100644 --- a/monitoring/uss_qualifier/scenarios/documentation/parsing.py +++ b/monitoring/uss_qualifier/scenarios/documentation/parsing.py @@ -297,7 +297,7 @@ def _parse_documentation(scenario: Type) -> TestScenarioDocumentation: def get_documentation(scenario: Type) -> TestScenarioDocumentation: - DOC_CACHE_ATTRIBUTE = "_md_documentation" + DOC_CACHE_ATTRIBUTE = f"_md_documentation_{scenario.__name__}" if not hasattr(scenario, DOC_CACHE_ATTRIBUTE): setattr(scenario, DOC_CACHE_ATTRIBUTE, _parse_documentation(scenario)) return getattr(scenario, DOC_CACHE_ATTRIBUTE)