projects/guix·blob java-team · refs

16 lines · 527 B

1Fixes the errors with use of asyncio in docrepr/tests/test_output.py:
2
3> await compare_screenshots(test_id, url)
4E TypeError: 'coroutine' object is not callable
5
6--- a/conftest.py
7+++ b/conftest.py
8@@ -65,7 +65,7 @@ def _open_browser(url):
9
10
11 @pytest.fixture
12-async def compare_screenshots(request):
13+def compare_screenshots(request):
14 """Run visual regression test on the output."""
15 async def _compare_screenshots(test_id, url):
16 if (request.config.getoption(COMPARE_SCREENSHOTS_OPTION) or