You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From a quick look I'm not sure it's generally a good idea to set allow_net_connect directly - but rather should be set via HTTPretty.enable(allow_net_connect=False). Calling it this way monkeypatches some of python's socket implementation with a fake socket.
So I guess probably better not to add documentation to show that, as it would potentially encourage bad practice and potentially more buggy usage.
I haven't found any place in the documentation where it is mentioned, that it is possible to globally disable network access:
I also didn't find a good place to add it, thus I am leaving this issue here.
The text was updated successfully, but these errors were encountered: