Just came across this package yesterday, and it has really helped me improve my test suites for some of my projects that involves shipping files via sftp. Right now, I can write test cases for nominal behavior, but I haven't been able to really exercise my error handling code. This is code that has developed organically as I have encountered real-world situations, but is extremely difficult to test, such as flaky connections, and intermittently missing ssh banners.
Do you imagine it might be possible to construct a fixture that might be able to mimic some of that behavior in a predictable manner?
Just came across this package yesterday, and it has really helped me improve my test suites for some of my projects that involves shipping files via sftp. Right now, I can write test cases for nominal behavior, but I haven't been able to really exercise my error handling code. This is code that has developed organically as I have encountered real-world situations, but is extremely difficult to test, such as flaky connections, and intermittently missing ssh banners.
Do you imagine it might be possible to construct a fixture that might be able to mimic some of that behavior in a predictable manner?