-
Notifications
You must be signed in to change notification settings - Fork 13
enabling sockets on 0.4.6 #96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm not very familiar but have you tried the built in fixture? pytest-homeassistant-custom-component/pytest_homeassistant_custom_component/plugins.py Line 96 in 47521e5
|
How do you use the fixture in a test function or |
Like you did in your original comment. I'm not sure how the socket functionality works, but if you figure it out, we can put in a pointer here. |
All the examples in the core repo look something like this: |
I have not had any luck with resolving, this suggests it may be related to the fixture resolution order: and a similar issue reported here: |
Does having |
I believe that the default behavior in the plugins here is to allow only host |
Thanks, I managed to get it working by changing all |
I'm going to close this, since it seems you have an issue with either |
How do you enable sockets for testing in the latest version? I have tried adding the following to
conftest.py
:and the following in the test function:
but still get
pytest_socket.SocketConnectBlockedError:
raised when the test runs.The text was updated successfully, but these errors were encountered: