Set http referer header correctly in smartcam

This commit is contained in:
Steven B
2024-12-20 12:34:11 +00:00
parent fe88b52e19
commit 69ea4ec728
2 changed files with 35 additions and 10 deletions

View File

@@ -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