File tree 1 file changed +6
-8
lines changed
1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -99,20 +99,18 @@ def mock_unused_tcp_port():
99
99
assert unused_tcp_port_factory () > 10000
100
100
101
101
102
- class Test :
103
- """Test that asyncio marked functions work in test methods ."""
102
+ class TestMarkerInClassBasedTests :
103
+ """Test that asyncio marked functions work for methods of test classes ."""
104
104
105
105
@pytest .mark .asyncio
106
- async def test_asyncio_marker_method (self , event_loop ):
107
- """Test the asyncio pytest marker in a Test class."""
106
+ async def test_asyncio_marker_with_explicit_loop_fixture (self , event_loop ):
107
+ """Test the " asyncio" marker works on a method in a class-based test with explicit loop fixture ."""
108
108
ret = await async_coro ()
109
109
assert ret == "ok"
110
110
111
-
112
- class TestUnexistingLoop :
113
111
@pytest .mark .asyncio
114
- async def test_asyncio_marker_without_loop (self ):
115
- """Test the asyncio pytest marker in a Test class."""
112
+ async def test_asyncio_marker_with_implicit_loop_fixture (self ):
113
+ """Test the " asyncio" marker works on a method in a class-based test with implicit loop fixture ."""
116
114
ret = await async_coro ()
117
115
assert ret == "ok"
118
116
You can’t perform that action at this time.
0 commit comments