Skip to content

Commit

Permalink
[uss_qualifier] Make scenario doc cache attribute name depend on scen…
Browse files Browse the repository at this point in the history
…ario name
  • Loading branch information
mickmis committed Dec 1, 2023
1 parent 7f1217e commit aa46059
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit aa46059

Please sign in to comment.