scitacean.testing.sftp.fixtures.sftp_fileserver#
- scitacean.testing.sftp.fixtures.sftp_fileserver(request, sftp_access, sftp_base_dir, sftp_data_dir, sftp_connect_with_username_password)[source]#
Fixture to declare that a test needs a local SFTP server.
If SFTP tests are enabled, this fixture configures and starts an SFTP server in a docker container the first time a test requests it. The server and container will be stopped and removed at the end of the test session.
Does nothing if the SFTP tests are disabled.