Skip to content

Commit a8aac34

Browse files
author
Cody D'Ambrosio
committed
Update plugin.py
1 parent 79a0696 commit a8aac34

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/pytest_tap/plugin.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,10 +217,9 @@ def _make_as_raw_yaml_block(report):
217217
except AttributeError:
218218
lines = report.longreprtext.splitlines(keepends=True)
219219
user_properties = getattr(report, "user_properties", [])
220-
return f"""\
220+
return f"""{"\n".join(f"{k}: {v}" for k, v in user_properties)}\
221221
message: |
222222
{"".join(f" {line}" for line in lines)}
223223
severity: {report.outcome}
224224
duration_ms: {report.duration * 1000}
225-
{"\n".join(f"{k}: {v}" for k, v in user_properties) if user_properties else ""}
226225
"""

0 commit comments

Comments
 (0)