Skip to content

Commit

Permalink
chore: Use str for subtest context
Browse files Browse the repository at this point in the history
  • Loading branch information
Stranger6667 committed Nov 29, 2021
1 parent 5250ea4 commit 8026971
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/schemathesis/lazy.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,9 @@ def run_subtest(
subtests: SubTests,
) -> None:
"""Run the given subtest with pytest fixtures."""
with subtests.test(verbose_name=operation.verbose_name, data_generation_method=data_generation_method):
with subtests.test(
verbose_name=operation.verbose_name, data_generation_method=data_generation_method.as_short_name()
):
sub_test(**fixtures)


Expand Down

0 comments on commit 8026971

Please sign in to comment.