Skip to content

Commit fbbbab4

Browse files
committed
Properly designate async test methods
1 parent 2c98385 commit fbbbab4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/asyncio/test_operation_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ async def test_exception():
164164

165165
@mock.patch("asyncio.sleep", autospec=True)
166166
@pytest.mark.asyncio
167-
async def test_unexpected_result(unused_sleep):
167+
async async def test_unexpected_result(unused_sleep):
168168
responses = [
169169
make_operation_proto(),
170170
# Second operation response is done, but has not error or response.
@@ -178,7 +178,7 @@ async def test_unexpected_result(unused_sleep):
178178

179179

180180
@pytest.mark.asyncio
181-
def test_from_gapic():
181+
async def test_from_gapic():
182182
operation_proto = make_operation_proto(done=True)
183183
operations_client = mock.create_autospec(
184184
operations_v1.OperationsClient, instance=True

0 commit comments

Comments
 (0)