We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 402dbaa commit 08fe86cCopy full SHA for 08fe86c
pytest_cases/main.py
@@ -738,9 +738,10 @@ def _get_case_getter_s(f,
738
names, param_ids, all_param_values_combinations = gen
739
740
if isinstance(names, str):
741
- # then this is a string formatter
+ # then this is a string formatter creating the names
742
_formatter = names
743
- names = lambda **params: _formatter.format(**params)
+ def names(**params):
744
+ return _formatter.format(**params)
745
746
nb_cases_generated = len(all_param_values_combinations)
747
if not callable(names):
0 commit comments