Make pytest-socket optional#218
Conversation
That way, this library can be used for integration/end-to-end tests.
|
Thank you for this well done contribution! I will keep this open to see if there are any more comments contrary to my comment in #217. |
|
Looked at this again, I'm still of the opinion that we should not change the behavior from ha/core testing. I think that a workaround for users who want to turn it on is to apply the |
|
It would gladly improve life quality to drop default pytest-socket settings or make the lib optional. Right now It is impossible to make any integrations tests. Some HA components are made as reverse engineering of other apps. It would help to allow making tests to run those on real life api endpoints which were reverse engineered. |
Are you able to try this suggestion #218 (comment)? I haven't tested it myself as I have no use for it, but it seems likely to work. |
That way, this library can be used for integration/end-to-end tests.
Closes #217