Fix pytest_socket error

This commit is contained in:
Steven B 2024-12-19 17:34:34 +00:00
parent e9134bb43f
commit 89477eb952
No known key found for this signature in database
GPG Key ID: 6D5B46B3679F2A43

View File

@ -27,7 +27,8 @@ from kasa.transports.sslaestransport import (
) )
# Transport tests are not designed for real devices # 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_ADMIN_USER = get_default_credentials(DEFAULT_CREDENTIALS["TAPOCAMERA"]).username
MOCK_PWD = "correct_pwd" # noqa: S105 MOCK_PWD = "correct_pwd" # noqa: S105