Here is a portion of my test file:
@pytest.fixture def live_sftp(): sftp = SFTP(HOST, USERNAME, PASSWORD) # add some directories and files yield sf