We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 502bd90 commit 7a589a7Copy full SHA for 7a589a7
tests/hypothesis/test_base.py
@@ -54,8 +54,14 @@ async def test_explicit_fixture_request(event_loop, n):
54
"""
55
)
56
57
- result = pytester.runpytest("--asyncio-mode=strict")
58
- result.assert_outcomes(passed=1)
+ result = pytester.runpytest("--asyncio-mode=strict", "-W default")
+ result.assert_outcomes(passed=1, warnings=2)
59
+ result.stdout.fnmatch_lines(
60
+ [
61
+ '*is asynchronous and explicitly requests the "event_loop" fixture*',
62
+ "*event_loop fixture provided by pytest-asyncio has been redefined*",
63
+ ]
64
+ )
65
66
67
def test_async_auto_marked(pytester: Pytester):
0 commit comments