2023-01-26 08:31:07 +01:00
|
|
|
from flexmock import flexmock
|
|
|
|
|
|
|
|
from borgmatic.actions import transfer as module
|
|
|
|
|
|
|
|
|
|
|
|
def test_run_transfer_does_not_raise():
|
|
|
|
flexmock(module.logger).answer = lambda message: None
|
|
|
|
flexmock(module.borgmatic.borg.transfer).should_receive('transfer_archives')
|
|
|
|
transfer_arguments = flexmock()
|
|
|
|
global_arguments = flexmock(monitoring_verbosity=1, dry_run=False)
|
|
|
|
|
|
|
|
module.run_transfer(
|
2023-03-31 08:21:20 +02:00
|
|
|
repository={'path': 'repo'},
|
2023-07-09 08:14:30 +02:00
|
|
|
config={},
|
2023-01-26 08:31:07 +01:00
|
|
|
local_borg_version=None,
|
|
|
|
transfer_arguments=transfer_arguments,
|
|
|
|
global_arguments=global_arguments,
|
|
|
|
local_path=None,
|
|
|
|
remote_path=None,
|
|
|
|
)
|