Skip to content

Commit e61bb2d

Browse files
committed
docs: clarify lifetime of TestCase objects
1 parent d9fce89 commit e61bb2d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tests_integration/lib/test_case.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@
88
class TestCase(ABC):
99
"""
1010
Abstract base class for a single test case in a scenario.
11+
Per test case, there is exactly one instance of this class statically created
12+
in the definition of the ALL_TEST_CASES list of the feedstock module.
13+
Note that a test case (i.e. an instance of this class) might be run multiple times,
14+
so be careful with state you keep in the instance.
1115
"""
1216

1317
def get_router(self) -> APIRouter:

0 commit comments

Comments
 (0)