From 3f13f485a5fb8d8726533b0ed44846fcc7f5e0d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jim=20Br=C3=A4nnlund?= Date: Sun, 19 Mar 2023 18:46:42 +0100 Subject: [PATCH] fix: Report fails to render with pytest-xdist --- testing/test_integration.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/testing/test_integration.py b/testing/test_integration.py index 481fe7e9..cf8b038a 100644 --- a/testing/test_integration.py +++ b/testing/test_integration.py @@ -471,3 +471,8 @@ def pytest_runtest_makereport(item, call): assert_that(str(element)).is_equal_to( f'' ) + + def test_xdist(self, pytester): + pytester.makepyfile("def test_xdist(): pass") + page = run(pytester, "report.html", "-n1") + assert_results(page, passed=1)