Open Taraman17 opened 2 weeks ago
So my assumption is, that this patched function is not used in the test, but the original is called, which causes the try to connect via a socket.
It is possible this plugin has weirdness with sockets because of the difference in plugin ordering, for example. But this sentence above makes me think that you have a problem in how you use patch
, which is not part of this package.
See also #154
It might be the way that I use patch - since I'm quite new to pytest, I usually look for the error between my ears first. But as I said, it was working about a week ago with the exact same code, so I must assume something changed in HA or the DevConatiner that affects the workings of this plugin.
I get an error in my tests, that worked up to last week.
What I get in the end is
but digging deeper, this is not the problem here. It originates from a library function, that should not be called at all, because it is patched in conftest.py:
And that is passed into the test function:
So my assumption is, that this patched function is not used in the test, but the original is called, which causes the try to connect via a socket. Also from the log: