-
Notifications
You must be signed in to change notification settings - Fork 14
Description
I'm trying to use this in my E2E/integration tests which need to make a ton of network requests all over the place (because they're E2E tests) and pytest-socket
is causing me no end of headaches.
It somehow manages to load itself into all sorts of sub-processes, yet the allowed hosts (and --force-enable-socket
) seem to only apply for the immediate test.
Theoretically, I could split out the tests that touch home assistant to their own venv so others will run with an interpreter that doesn't have this package installed. But that would make it impossible to test actual user scenarios where a user does something in Home Assistant, then uses another UI to make changes, then comes back to see if they reflected in HA.
If you could please make that an optional dependency (or make some mechanism to use the very useful fixtures provided by this project without also getting pytest-socket
, that would be very much appreciated 🙏 🙏 🙏 🙏 🙏