fix: Report fails to render with pytest-xdist (#598)

This commit is contained in:
Jim Brännlund 2023-03-19 18:56:52 +01:00 committed by GitHub
parent 21cf38918f
commit 079681decc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -471,3 +471,8 @@ class TestHTML:
assert_that(str(element)).is_equal_to( assert_that(str(element)).is_equal_to(
f'<video controls="">\n<source src="{src}" type="{mime_type}"/>\n</video>' f'<video controls="">\n<source src="{src}" type="{mime_type}"/>\n</video>'
) )
def test_xdist(self, pytester):
pytester.makepyfile("def test_xdist(): pass")
page = run(pytester, "report.html", "-n1")
assert_results(page, passed=1)