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 079b33f commit 93326f5Copy full SHA for 93326f5
tests/e2e-playwright/tests/conftest.py
@@ -172,9 +172,11 @@ def pytest_runtest_makereport(item: Item, call):
172
diagnostics["duration"] = str(end_time - start_time)
173
174
# Print the diagnostics report
175
- print(f"\nDiagnostics repoort for {test_name} ---")
176
- print(json.dumps(diagnostics, indent=2))
177
- print("---")
+ with log_context(
+ logging.WARNING,
+ f"ℹ️ Diagnostics report for {test_name} ---", # noqa: RUF001
178
+ ) as ctx:
179
+ ctx.logger.warning(json.dumps(diagnostics, indent=2))
180
181
182
@pytest.hookimpl(tryfirst=True)
0 commit comments