Skip to content

Commit 93326f5

Browse files
committed
@pcrespov: emojis
1 parent 079b33f commit 93326f5

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/e2e-playwright/tests/conftest.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -172,9 +172,11 @@ def pytest_runtest_makereport(item: Item, call):
172172
diagnostics["duration"] = str(end_time - start_time)
173173

174174
# Print the diagnostics report
175-
print(f"\nDiagnostics repoort for {test_name} ---")
176-
print(json.dumps(diagnostics, indent=2))
177-
print("---")
175+
with log_context(
176+
logging.WARNING,
177+
f"ℹ️ Diagnostics report for {test_name} ---", # noqa: RUF001
178+
) as ctx:
179+
ctx.logger.warning(json.dumps(diagnostics, indent=2))
178180

179181

180182
@pytest.hookimpl(tryfirst=True)

0 commit comments

Comments
 (0)