mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-04-24 07:17:17 +00:00
14 lines
436 B
Python
14 lines
436 B
Python
from pathlib import Path
|
|
from pytest_mock import MockerFixture
|
|
|
|
from ahriman.core.upload.rsync import Rsync
|
|
|
|
|
|
def test_sync(rsync: Rsync, mocker: MockerFixture) -> None:
|
|
"""
|
|
must run sync command
|
|
"""
|
|
check_output_mock = mocker.patch("ahriman.core.upload.rsync.Rsync._check_output")
|
|
rsync.sync(Path("path"), [])
|
|
check_output_mock.assert_called_once_with(*rsync.command, "path", rsync.remote, logger=rsync.logger)
|