mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-10-23 20:25:00 +00:00
refactor: fix some IDE warnings
This commit is contained in:
1 parent
6f8b1509d7
commit
84942e3c98
5 files changed
+9
-8
No files matched your search
@@ -8,12 +8,12 @@ from ahriman.core.alpm.pacman_database import PacmanDatabase
|
||||
from ahriman.core.exceptions import PacmanError
|
||||
|
||||
|
||||
def test_copy(pacman_database: PacmanDatabase, mocker: MockerFixture) -> None:
|
||||
def test_copy(mocker: MockerFixture) -> None:
|
||||
"""
|
||||
must copy loca database file
|
||||
"""
|
||||
copy_mock = mocker.patch("shutil.copy")
|
||||
pacman_database.copy(Path("remote"), Path("local"))
|
||||
PacmanDatabase.copy(Path("remote"), Path("local"))
|
||||
copy_mock.assert_called_once_with(Path("remote"), Path("local"))
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user