{"library":"pytest-localftpserver","title":"pytest-localftpserver","description":"A PyTest plugin that provides an FTP fixture (localftpserver) for your tests, enabling you to spin up a real FTP server during testing. Version 1.5.0 is the latest release; the project is in maintenance mode with infrequent updates.","language":"python","status":"maintenance","last_verified":"Fri May 01","install":{"commands":["pip install pytest-localftpserver"],"cli":null},"imports":["no import needed; use fixture name in test function argument"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"def test_ftp(localftpserver):\n    with localftpserver.session() as ftp:\n        ftp.login('user', 'pass')\n        ftp.cwd('/')\n        assert ftp.pwd() == '/'\n        ftp.storbinary('STOR testfile', b'data')\n        ftp.retrbinary('RETR testfile', lambda x: None)","lang":"python","description":"A minimal test using the localftpserver fixture. The fixture starts an FTP server on a random port; the session() context manager gives you a connected FTP client.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}