From 89477eb952524cadc52928e2b1439571f1b8032c Mon Sep 17 00:00:00 2001 From: Steven B <51370195+sdb9696@users.noreply.github.com> Date: Thu, 19 Dec 2024 17:34:34 +0000 Subject: [PATCH] Fix pytest_socket error --- tests/transports/test_sslaestransport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/transports/test_sslaestransport.py b/tests/transports/test_sslaestransport.py index 6816fa35..a2f3edfb 100644 --- a/tests/transports/test_sslaestransport.py +++ b/tests/transports/test_sslaestransport.py @@ -27,7 +27,8 @@ from kasa.transports.sslaestransport import ( ) # Transport tests are not designed for real devices -pytestmark = [pytest.mark.requires_dummy] +# SslAesTransport use a socket to get it's own ip address +pytestmark = [pytest.mark.requires_dummy, pytest.mark.enable_socket] MOCK_ADMIN_USER = get_default_credentials(DEFAULT_CREDENTIALS["TAPOCAMERA"]).username MOCK_PWD = "correct_pwd" # noqa: S105