chore: setuponly - migrate to f string
This commit is contained in:
parent
bbe6b4a218
commit
20c558c84a
|
@ -73,13 +73,9 @@ def _show_fixture_action(
|
||||||
# Use smaller indentation the higher the scope: Session = 0, Package = 1, etc.
|
# Use smaller indentation the higher the scope: Session = 0, Package = 1, etc.
|
||||||
scope_indent = list(reversed(Scope)).index(fixturedef._scope)
|
scope_indent = list(reversed(Scope)).index(fixturedef._scope)
|
||||||
tw.write(" " * 2 * scope_indent)
|
tw.write(" " * 2 * scope_indent)
|
||||||
tw.write(
|
|
||||||
"{step} {scope} {fixture}".format( # noqa: UP032 (Readability)
|
scopename = fixturedef.scope[0].upper()
|
||||||
step=msg.ljust(8), # align the output to TEARDOWN
|
tw.write(f"{msg:<8} {scopename} {fixturedef.argname}")
|
||||||
scope=fixturedef.scope[0].upper(),
|
|
||||||
fixture=fixturedef.argname,
|
|
||||||
)
|
|
||||||
)
|
|
||||||
|
|
||||||
if msg == "SETUP":
|
if msg == "SETUP":
|
||||||
deps = sorted(arg for arg in fixturedef.argnames if arg != "request")
|
deps = sorted(arg for arg in fixturedef.argnames if arg != "request")
|
||||||
|
|
Loading…
Reference in New Issue