Skip to content

Commit b2c449e

Browse files
author
Sylvain MARIE
committed
minor: docstring explanation
1 parent 0c9bb52 commit b2c449e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pytest_cases/case_parametrizer_new.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,9 @@ def get_or_create_case_fixture(case_id, # type: str
322322
than the test/fixture requiring it (decorated with @parametrize_with_cases), we create that fixture in the
323323
appropriate module/class (the host of the test/fixture function).
324324
325+
Note that we create a small cache in the module/class in order to reuse the created fixture corresponding
326+
to a case function if it was already required by a test/fixture in this host.
327+
325328
:param case_id:
326329
:param case_fun:
327330
:param host_class_or_module:

0 commit comments

Comments
 (0)