def rsync(mode): ''' fixture to create generic rsync object ''' rsync = RsyncAccess(label='marvin_getlist', verbose=False) if mode != 'local': rsync.remote() yield rsync rsync.reset() rsync = None
def rsync(): ''' fixture to create generic rsync object ''' rsync = RsyncAccess(label='test_rsync') rsync.remote() yield rsync # teardown rsync.reset() rsync = None