mirror of
https://github.com/arcan1s/ahriman.git
synced 2025-06-28 06:41:43 +00:00
17 lines
485 B
Python
17 lines
485 B
Python
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()
|