Pytest/Unittest SFTP Client Connection I’ve written a function that establishes and returns an SFTP client connection. Here is the code: