Skip to content

Commit 559dfc3

Browse files
author
Sylvain MARIE
committed
minor comments
1 parent d520f81 commit 559dfc3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pytest_cases/main_params.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -397,7 +397,7 @@ def _get_case_getter_s(f,
397397
names, param_ids, all_param_values_combinations = gen
398398

399399
if isinstance(names, str):
400-
# then this is a string formatter creating the names
400+
# then this is a string formatter creating the names. Create the corresponding callable
401401
_formatter = names
402402
def names(**params):
403403
try:
@@ -407,6 +407,7 @@ def names(**params):
407407

408408
nb_cases_generated = len(all_param_values_combinations)
409409
if not callable(names):
410+
# This is an explicit list
410411
if len(names) != nb_cases_generated:
411412
raise ValueError("An explicit list of names has been provided but it has not the same length (%s) than"
412413
" the number of cases to be generated (%s)" % (len(names), nb_cases_generated))

0 commit comments

Comments
 (0)