Skip to content

Commit ae5c453

Browse files
committed
cover
1 parent cc198b2 commit ae5c453

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

tests/test_server_disconnected_retry.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,16 @@
33
from __future__ import annotations
44

55
import asyncio
6-
6+
import inspect
77
from collections.abc import AsyncGenerator
88
from unittest.mock import AsyncMock, Mock, patch
9+
10+
import aiohttp
911
import pytest
1012
import pytest_asyncio
11-
import aiohttp
12-
from aiohttp import web, ClientSession
13+
from aiohttp import ClientSession, web
1314
from lxml import etree
15+
1416
from onvif.client import AsyncTransportProtocolErrorHandler
1517
from onvif.zeep_aiohttp import AIOHTTPTransport
1618

@@ -364,7 +366,6 @@ async def test_post_xml_decorator_is_applied() -> None:
364366
"""Verify that the post_xml method has the retry decorator applied."""
365367

366368
# Check that AsyncTransportProtocolErrorHandler.post_xml has the decorator
367-
import inspect
368369

369370
# The decorated function will have been wrapped
370371
# Check if the function has the expected decorator behavior

0 commit comments

Comments
 (0)