We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbe6b4a commit 20c558cCopy full SHA for 20c558c
src/_pytest/setuponly.py
@@ -73,13 +73,9 @@ def _show_fixture_action(
73
# Use smaller indentation the higher the scope: Session = 0, Package = 1, etc.
74
scope_indent = list(reversed(Scope)).index(fixturedef._scope)
75
tw.write(" " * 2 * scope_indent)
76
- tw.write(
77
- "{step} {scope} {fixture}".format( # noqa: UP032 (Readability)
78
- step=msg.ljust(8), # align the output to TEARDOWN
79
- scope=fixturedef.scope[0].upper(),
80
- fixture=fixturedef.argname,
81
- )
82
+
+ scopename = fixturedef.scope[0].upper()
+ tw.write(f"{msg:<8} {scopename} {fixturedef.argname}")
83
84
if msg == "SETUP":
85
deps = sorted(arg for arg in fixturedef.argnames if arg != "request")
0 commit comments