from pathlib import Path from pytest_mock import MockerFixture from ahriman.core.configuration import Configuration from ahriman.core.upload.rsync import Rsync def test_sync(configuration: Configuration, mocker: MockerFixture) -> None: """ must run sync command """ check_output_mock = mocker.patch("ahriman.core.upload.rsync.Rsync._check_output") upload = Rsync("x86_64", configuration) upload.sync(Path("path")) check_output_mock.assert_called_once()