Skip to content

Commit

Permalink
chore: add note to test util method
Browse files Browse the repository at this point in the history
  • Loading branch information
CaselIT committed Oct 14, 2023
1 parent 41d8428 commit 311a4be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 311a4be

Please sign in to comment.