Skip to content

Commit 55dd019

Browse files
committed
Use cached_property for test id.
1 parent 7b2450b commit 55dd019

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/beku/testsuite.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import os
44
import re
55
from dataclasses import dataclass, field
6+
from functools import cached_property
67
from itertools import product, chain
78
from os import walk, path, makedirs
89
from shutil import copy2
@@ -34,7 +35,7 @@ class TestCase:
3435
name: str
3536
values: Dict[str, str]
3637

37-
@property
38+
@cached_property
3839
def tid(self) -> str:
3940
"""Return the test id."""
4041
return "_".join(

0 commit comments

Comments
 (0)