A PyTest plugin which provides an FTP fixture for your tests
https://pypi.org/project/pytest-localserver/