From 311a4be3311a11102499a47016a630a36e1ef454 Mon Sep 17 00:00:00 2001 From: Federico Caselli Date: Sat, 14 Oct 2023 19:37:44 +0200 Subject: [PATCH] chore: add note to test util method --- tests/_util.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/_util.py b/tests/_util.py index 9acc9776c..85070a550 100644 --- a/tests/_util.py +++ b/tests/_util.py @@ -72,6 +72,7 @@ def disable_asgi_non_coroutine_wrapping(): def as_params(*values, prefix=None): if not prefix: prefix = '' + # NOTE(caselit): each value must be a tuple/list even when using one single argument return [ pytest.param(*value, id=f'{prefix}_{i}' if prefix else f'{i}') for i, value in enumerate(values, 1)