jeudi 5 novembre 2015

Python - writting unittest for functionality that uses remote access?

I have created this functionality where System regularly connects to remote location, checks specified directory and if it finds specific files in there, it imports data to system.

Transfer functionality is implemented using paramiko and ftplib. So I wonder if it is possible to somehow create some "fake" SSH connection into one of my module's directories, so it would act like a remote location where there would be test file to import (at least with paramiko behavior)?

So unittest could be run without actual real connection to some remote location? Any ideas for that?

Aucun commentaire:

Enregistrer un commentaire