Skip to content

Commit

Permalink
Use f-string in pytest plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Dygalo committed Sep 13, 2019
1 parent 9da9e36 commit 78fde7e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schemathesis/extra/pytest_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def __init__(self, test_function: Callable, *args: Any, **kwargs: Any) -> None:
super().__init__(*args, **kwargs)

def _get_test_name(self, endpoint: Endpoint) -> str:
return self.name + f"[{endpoint.method}:{endpoint.path}]"
return f"{self.name}[{endpoint.method}:{endpoint.path}]"

def _gen_items(self, endpoint: Endpoint) -> Generator[Function, None, None]:
"""Generate all items for the given endpoint.
Expand Down

0 comments on commit 78fde7e

Please sign in to comment.